From 4280ea2db418e60700a8c545e6d174807915d426 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 20 Mar 2021 21:28:36 +0100 Subject: [PATCH] always archive test results --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 09ef649..c8d2163 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,8 +4,6 @@ pipeline { stage('Test') { steps { sh 'dotnet test --collect:"XPlat Code Coverage"' - nunit testResultsPattern: '**/TestResults.xml' - cobertura coberturaReportFile: '**/coverage.cobertura.xml' } } @@ -24,7 +22,12 @@ pipeline { sh 'dotnet nuget push -s http://localhost:5000/v3/index.json **/*.nupkg -k $BAGET -n true' } } - + } + post { + always { + nunit testResultsPattern: '**/TestResults.xml' + cobertura coberturaReportFile: '**/coverage.cobertura.xml' + } } environment { BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676')