From a477fef230bb168056d464ba6f8c95a0f76bfa96 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 20 Mar 2021 21:37:43 +0100 Subject: [PATCH] always publish test results to jenkins --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fbd674a..c15d443 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,12 +7,6 @@ pipeline { sh 'dotnet dotnet-cake --Target=Publish --Branch=' + env.BRANCH_NAME } } - stage('Publish Test Results') { - steps { - nunit testResultsPattern: '**/TestResults.xml' - cobertura coberturaReportFile: '**/coverage.cobertura.xml' - } - } stage('Document') { when { branch 'release' @@ -23,6 +17,12 @@ pipeline { } } } + post { + always { + nunit testResultsPattern: '**/TestResults.xml' + cobertura coberturaReportFile: '**/coverage.cobertura.xml' + } + } environment { BAGET = credentials('3db850d0-e6b5-43d5-b607-d180f4eab676') NUGET = credentials('e1bf7f6c-6047-4f7e-b639-15240a8f8351')