Philipp Häfelfinger
a7d362f332
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
29 lines
466 B
Groovy
29 lines
466 B
Groovy
pipeline {
|
|
agent {
|
|
docker { image 'node:16-alpine'}
|
|
}
|
|
|
|
stages {
|
|
stage('nuget restore') {
|
|
steps {
|
|
sh "cd ${env.WORKSPACE}/src"
|
|
sh "dotnet restore"
|
|
}
|
|
}
|
|
|
|
stage('build') {
|
|
steps {
|
|
sh "cd ${env.WORKSPACE}/src"
|
|
sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER}"
|
|
}
|
|
}
|
|
|
|
stage('Testing') {
|
|
steps {
|
|
sh "cd ${env.WORKSPACE}/src"
|
|
sh "dotnet test"
|
|
}
|
|
}
|
|
}
|
|
}
|