diff --git a/02-maven-html-reports.groovy b/02-maven-html-reports.groovy
index a69dc25..9f93f54 100644
--- a/02-maven-html-reports.groovy
+++ b/02-maven-html-reports.groovy
@@ -48,14 +48,16 @@ pipeline {
to: 'guillem@gromenware.com'
)
}
- // publish html
- publishHTML target: [
- allowMissing: false,
- alwaysLinkToLastBuild: false,
- keepAll: true,
- reportDir: 'target/surefire-reports/',
- reportFiles: 'emailable-report.html',
- reportName: 'Emailable Report'
- ]
+ always{
+ // publish html
+ publishHTML target: [
+ allowMissing: false,
+ alwaysLinkToLastBuild: false,
+ keepAll: true,
+ reportDir: 'target/surefire-reports/',
+ reportFiles: 'emailable-report.html',
+ reportName: 'Emailable Report'
+ ]
+ }
}
}
\ No newline at end of file