diff --git a/Jenkinsfile b/Jenkinsfile index 6283bdc..7c85059 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }