diff --git a/Jenkinsfile b/Jenkinsfile index 3a754ca..f58e715 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,13 +19,13 @@ pipeline { stages { stage("Test") { steps { - sh 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj' + sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Shop/**/*.Tests.csproj' xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)]) } } stage("Publish") { steps { - sh 'conda run -n base dotnet publish --configuration Release --output output/shop-modules Props.Shop/*.csproj' + sh 'conda run -n base dotnet publish --configuration Release --output output/shop-modules Props.Shop/**/*.csproj' sh 'rm output/shop-modules/**/*.Tests.dll' fingerprint 'output/shop-modules/**/Props.Shop.*' sh 'cp ./Props.Shop/output/shop-modules/**/*.dll ./Props.Shop/output/shop-modules/**/*.deps.json ./Props/shops/.' @@ -37,7 +37,7 @@ pipeline { stages { stage("Test") { steps { - sh 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj' + sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore Props.Tests/Props.Tests.csproj' xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)]) } }