diff --git a/Jenkinsfile b/Jenkinsfile index c0f30e1..cf9f7e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,20 +5,19 @@ pipeline { stages { stage("Restore") { steps { - dotnetRestore project: "Props.Shop/Props.Shop.sln" + dotnetRestore configuration: 'Release', project: "Props.Shop/Props.Shop.sln" dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln" } } stage("Test") { steps { - dotnetTest project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true + dotnetTest noRestore: true, project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true } } stage("Publish") { steps { - dotnetPublish configuration: 'Release', project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true - archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*,Props.Shop/**/bin/Release/**/publish/Props.Shop.Framework*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true - archiveArtifacts artifacts: 'Props.Shop/Framework/bin/Release/**/publish/Props.Shop.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true + dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true + archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true sh "python3 scripts/load_shop_modules.py" } } @@ -28,19 +27,19 @@ pipeline { stages { stage("Restore") { steps { - dotnetRestore project: "Props" + dotnetRestore configuration: 'Release', project: "Props" dotnetRestore project: "Props.Tests" } } stage("Test") { steps { - dotnetTest project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true + dotnetTest noRestore: true, project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true } } stage("Publish") { steps { dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK' - archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true + archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', excludes: fingerprint: true, followSymlinks: false, onlyIfSuccessful: true } } }