prevents unneeded restores and fixes artifacts archive
All checks were successful
piwigodotnet/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2022-10-25 23:03:39 +02:00
parent ebdd0aecc1
commit c11544245f

6
Jenkinsfile vendored
View File

@ -18,13 +18,13 @@ pipeline {
stage('test') { stage('test') {
steps { steps {
sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln" sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln --no-restore"
} }
} }
stage('packing') { stage('packing') {
steps { steps {
sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln -o ${env.WORKSPACE}/publish -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}" sh "dotnet pack ${env.WORKSPACE}/src/PiwigoDotnet.sln --no-restore -o ${env.WORKSPACE}/publish -p:Version=${env.PWDNVERSION}.${env.BUILD_NUMBER}"
} }
} }
@ -32,7 +32,7 @@ pipeline {
post { post {
always { always {
archiveArtifacts artifacts: "publish", onlyIfSuccessful: true archiveArtifacts artifacts: "publish/*.nupkg", onlyIfSuccessful: true
} }
} }
} }