Skip to content

Commit

Permalink
Merge pull request #983 from hmcts/DTSRD-3580_Jenkins_Reports_Publish…
Browse files Browse the repository at this point in the history
…_On_Failure

DTSRD-3580 Jenkins Test Reports to Publish on Failure - afterSuccess(…
  • Loading branch information
mikebrownccd authored Oct 21, 2024
2 parents 8871aac + 77518ac commit 096af98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,31 @@ withPipeline(type, product, component) {
syncBranchesWithMaster(branchesToSync)


afterSuccess('integrationTest:preview') {
afterAlways('integrationTest:preview') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

afterSuccess('integrationTest:aat') {
afterAlways('integrationTest:aat') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

afterSuccess('functionalTest:preview') {
afterAlways('functionalTest:preview') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

afterSuccess('functionalTest:aat') {
afterAlways('functionalTest:aat') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
}

afterSuccess('pact-provider-verification') {
afterAlways('pact-provider-verification') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/**/*'
}

afterSuccess('pact-consumer-tests') {
afterAlways('pact-consumer-tests') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/**/*'
}

afterSuccess('sonarscan') {
afterAlways('sonarscan') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand All @@ -123,7 +123,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('smoketest:preview') {
afterAlways('smoketest:preview') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand All @@ -134,7 +134,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('smoketest:aat') {
afterAlways('smoketest:aat') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand All @@ -145,7 +145,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('functionalTest:aat') {
afterAlways('functionalTest:aat') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
publishHTML target: [
allowMissing : true,
Expand All @@ -157,7 +157,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('functionalTest:preview') {
afterAlways('functionalTest:preview') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
publishHTML target: [
allowMissing : true,
Expand All @@ -169,7 +169,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('pact-provider-verification') {
afterAlways('pact-provider-verification') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand All @@ -181,7 +181,7 @@ withPipeline(type, product, component) {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/tests/**/*'
}

afterSuccess('pact-consumer-tests') {
afterAlways('pact-consumer-tests') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ withNightlyPipeline(type, product, component) {
enableSecurityScan()
enableFortifyScan()

afterSuccess('fullFunctionalTest') {
afterAlways('fullFunctionalTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/site/serenity/**/*'
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'build/reports/**/*'

Expand All @@ -98,7 +98,7 @@ withNightlyPipeline(type, product, component) {
print "completed delete script for nightly"
}

afterSuccess('mutationTest') {
afterAlways('mutationTest') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand Down

0 comments on commit 096af98

Please sign in to comment.