piwigodotnet/Jenkinsfile
Philipp Häfelfinger 2e09df694d
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
should fix dotnet cli
2022-10-25 22:41:49 +02:00

33 lines
550 B
Groovy

pipeline {
agent {
docker { image 'mcr.microsoft.com/dotnet/sdk:6.0'}
}
environment {
DOTNET_CLI_HOME = "/tmp/DOTNET_CLI_HOME"
}
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"
}
}
}
}