prevents unneeded restores and fixes artifacts archive
piwigodotnet/pipeline/head This commit looks good Details

This commit is contained in:
Philipp Häfelfinger 2022-10-25 23:03:39 +02:00
parent ebdd0aecc1
commit c11544245f
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -18,13 +18,13 @@ pipeline {
stage('test') {
steps {
sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln"
sh "dotnet test ${env.WORKSPACE}/src/PiwigoDotnet.sln --no-restore"
}
}
stage('packing') {
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 {
always {
archiveArtifacts artifacts: "publish", onlyIfSuccessful: true
archiveArtifacts artifacts: "publish/*.nupkg", onlyIfSuccessful: true
}
}
}