prevents unneeded restores and fixes artifacts archive
piwigodotnet/pipeline/head This commit looks good
Details
piwigodotnet/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ebdd0aecc1
commit
c11544245f
|
@ -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