Skip to content

Commit 6cdebc5

Browse files
authored
Merge pull request #1115 from hmcts/DTSRD-3580_Jenkins_Reports_Publish_On_Failure
DTSRD-3580 Jenkins Test Reports to Publish on Failure
2 parents dba25d4 + 89113c9 commit 6cdebc5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Jenkinsfile_CNP

+6-6
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ withPipeline(type, product, component) {
8888
env.TEST_URL = "http://rd-user-profile-api-aat.aat.platform.hmcts.net"
8989
}
9090

91-
afterSuccess('sonarscan') {
91+
afterAlways('sonarscan') {
9292

9393
publishHTML target: [
9494
allowMissing : true,
@@ -109,7 +109,7 @@ withPipeline(type, product, component) {
109109
]
110110
}
111111

112-
afterSuccess('smoketest:preview') {
112+
afterAlways('smoketest:preview') {
113113
publishHTML target: [
114114
allowMissing : true,
115115
alwaysLinkToLastBuild: true,
@@ -120,7 +120,7 @@ withPipeline(type, product, component) {
120120
]
121121
}
122122

123-
afterSuccess('smoketest:aat') {
123+
afterAlways('smoketest:aat') {
124124
publishHTML target: [
125125
allowMissing : true,
126126
alwaysLinkToLastBuild: true,
@@ -131,7 +131,7 @@ withPipeline(type, product, component) {
131131
]
132132
}
133133

134-
afterSuccess('functionalTest:aat') {
134+
afterAlways('functionalTest:aat') {
135135
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
136136
publishHTML target: [
137137
allowMissing : true,
@@ -143,7 +143,7 @@ withPipeline(type, product, component) {
143143
]
144144
}
145145

146-
afterSuccess('functionalTest:preview') {
146+
afterAlways('functionalTest:preview') {
147147
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
148148
publishHTML target: [
149149
allowMissing : true,
@@ -155,7 +155,7 @@ withPipeline(type, product, component) {
155155
]
156156
}
157157

158-
afterSuccess('pact-provider-verification') {
158+
afterAlways('pact-provider-verification') {
159159
publishHTML target: [
160160
allowMissing : true,
161161
alwaysLinkToLastBuild: true,

Jenkinsfile_nightly

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ withNightlyPipeline(type, product, component) {
7272
enableSecurityScan()
7373
enableFortifyScan()
7474

75-
afterSuccess('fullFunctionalTest') {
75+
afterAlways('fullFunctionalTest') {
7676
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
7777
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/**/*'
7878
publishHTML target: [
@@ -92,11 +92,11 @@ withNightlyPipeline(type, product, component) {
9292
print "done delete script for nightly"
9393
}
9494

95-
afterSuccess('fortify-scan') {
95+
afterAlways('fortify-scan') {
9696
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
9797
}
9898

99-
afterSuccess('mutationTest') {
99+
afterAlways('mutationTest') {
100100
publishHTML target: [
101101
allowMissing : true,
102102
alwaysLinkToLastBuild: true,

0 commit comments

Comments
 (0)