2022-10-25 22:17:59 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker { image 'node:16-alpine'}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
2022-10-25 22:29:46 +02:00
|
|
|
// stage('Cloning repository') {
|
|
|
|
// steps {
|
|
|
|
// checkout scm
|
|
|
|
// }
|
|
|
|
// }
|
2022-10-25 22:17:59 +02:00
|
|
|
|
|
|
|
stage('nuget restore') {
|
|
|
|
steps {
|
2022-10-25 22:28:54 +02:00
|
|
|
sh "ls -la ${env.WORKSPACE}"
|
|
|
|
// sh "cd ${env.WORKSPACE}/src"
|
|
|
|
// sh "dotnet restore"
|
2022-10-25 22:17:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-25 22:28:54 +02:00
|
|
|
// stage('build') {
|
|
|
|
// steps {
|
|
|
|
// sh "cd ${env.WORKSPACE}/src"
|
|
|
|
// sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER}"
|
|
|
|
// }
|
|
|
|
// }
|
2022-10-25 22:17:59 +02:00
|
|
|
|
2022-10-25 22:28:54 +02:00
|
|
|
// stage('Testing') {
|
|
|
|
// steps {
|
|
|
|
// sh "cd ${env.WORKSPACE}/src"
|
|
|
|
// sh "dotnet test"
|
|
|
|
// }
|
|
|
|
// }
|
2022-10-25 22:17:59 +02:00
|
|
|
}
|
|
|
|
}
|