From 02e95ae9166e6ae9b5ec0fefe474e978e1822763 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sat, 7 Oct 2023 09:03:39 -0700 Subject: [PATCH 1/2] added report results stage that includes the step to publish the simplecov results to Jenkins --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c944ffa..4c2d325 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,5 +28,16 @@ pipeline { sh 'cucumber' } } + stage('Report results') { + steps { + publishHTML (target: [allowMissing: false, + alwaysLinkToLastBuild: true, + keepAlive: true, + reportDir: 'coverage', + reportFiles: 'index.html', + reportName: 'Test Results', + reportTitles: 'Test Coverage']) + } + } } } From c77cf2cb78163d4d86ec0616f377bb5562b97337 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sat, 7 Oct 2023 09:13:46 -0700 Subject: [PATCH 2/2] trying to get assets to load as well, and keep previous reports --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4c2d325..bb1e248 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,9 +30,11 @@ pipeline { } stage('Report results') { steps { - publishHTML (target: [allowMissing: false, - alwaysLinkToLastBuild: true, - keepAlive: true, + archive(includes: 'pkg/*.gem') + publishHTML (target: [ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: true, reportDir: 'coverage', reportFiles: 'index.html', reportName: 'Test Results',