prevents unneeded restores and fixes artifacts archive
All checks were successful
piwigodotnet/pipeline/head This commit looks good
All checks were successful
piwigodotnet/pipeline/head This commit looks good
This commit is contained in:
parent
ebdd0aecc1
commit
c11544245f
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user