Skip to content

Commit

Permalink
after always (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
jburke-idam authored Nov 1, 2023
1 parent d8aa1c6 commit 9e27705
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ withPipeline(type, product, component) {
Using ITHC_ENVIRONMENT_NAME: ${env.ITHC_ENVIRONMENT_NAME}""".stripIndent()
}

afterSuccess('akschartsinstall') {
afterAlways('akschartsinstall') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Using PREVIEW_ENVIRONMENT_NAME: ${env.PREVIEW_ENVIRONMENT_NAME}
Using NONPROD_ENVIRONMENT_NAME: ${env.NONPROD_ENVIRONMENT_NAME}""".stripIndent()
}

afterSuccess('smoketest:idam-preview') {
afterAlways('smoketest:idam-preview') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Using PREVIEW_ENVIRONMENT_NAME: ${env.PREVIEW_ENVIRONMENT_NAME}
Using NONPROD_ENVIRONMENT_NAME: ${env.NONPROD_ENVIRONMENT_NAME}""".stripIndent()
}

afterSuccess('functionalTest:idam-preview') {
afterAlways('functionalTest:idam-preview') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Expand All @@ -130,7 +130,7 @@ withPipeline(type, product, component) {
}
// End AKS Callbacks

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

}

afterSuccess('smoketest:idam-preview') {
afterAlways('smoketest:idam-preview') {
archiveArtifacts '**/build/test-results/**/*'

publishHTML target: [
Expand All @@ -155,7 +155,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('smoketest:idam-aat') {
afterAlways('smoketest:idam-aat') {
archiveArtifacts '**/build/test-results/**/*'

publishHTML target: [
Expand All @@ -168,7 +168,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('functionalTest:idam-preview') {
afterAlways('functionalTest:idam-preview') {
archiveArtifacts '**/build/test-results/**/*'
archiveArtifacts '**/functional-output/**/*'

Expand All @@ -182,7 +182,7 @@ withPipeline(type, product, component) {
]
}

afterSuccess('functionalTest:idam-aat') {
afterAlways('functionalTest:idam-aat') {
env.TESTS_FOR_ACCESSIBILITY = false
env.WAIT_FOR_ACTION_TIMEOUT = 500
archiveArtifacts '**/build/test-results/**/*'
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ try {
enableCrossBrowserTest()
enableFortifyScan('idam-idam-' + params.ENVIRONMENT)

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

before('fullFunctionalTest') {
env.TESTS_FOR_ACCESSIBILITY = true
}

afterSuccess('fullFunctionalTest') {
afterAlways('fullFunctionalTest') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: 'output/**/*'
env.TESTS_FOR_ACCESSIBILITY = false

Expand Down
12 changes: 6 additions & 6 deletions Jenkinsfile_parameterized
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,23 @@ withParameterizedPipeline(type, product, component, params.ENVIRONMENT, params.S
Using IDAMAPI: ${env.IDAMAPI}""".stripIndent()
}

afterSuccess('akschartsinstall') {
afterAlways('akschartsinstall') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Using PREVIEW_ENVIRONMENT_NAME: ${env.PREVIEW_ENVIRONMENT_NAME}
Using NONPROD_ENVIRONMENT_NAME: ${env.NONPROD_ENVIRONMENT_NAME}""".stripIndent()
}

afterSuccess('smoketest:idam-preview') {
afterAlways('smoketest:idam-preview') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Using PREVIEW_ENVIRONMENT_NAME: ${env.PREVIEW_ENVIRONMENT_NAME}
Using NONPROD_ENVIRONMENT_NAME: ${env.NONPROD_ENVIRONMENT_NAME}""".stripIndent()
}

afterSuccess('functionalTest:idam-preview') {
afterAlways('functionalTest:idam-preview') {
env.PREVIEW_ENVIRONMENT_NAME = 'idam-preview'
env.NONPROD_ENVIRONMENT_NAME = 'idam-aat'
println """\
Expand All @@ -89,7 +89,7 @@ withParameterizedPipeline(type, product, component, params.ENVIRONMENT, params.S
}
// End AKS Callbacks

afterSuccess('test') {
afterAlways('test') {
publishHTML target: [
allowMissing : true,
alwaysLinkToLastBuild: true,
Expand All @@ -101,7 +101,7 @@ withParameterizedPipeline(type, product, component, params.ENVIRONMENT, params.S

}

afterSuccess('smoketest:idam-preview') {
afterAlways('smoketest:idam-preview') {
archiveArtifacts '**/build/test-results/**/*'

publishHTML target: [
Expand All @@ -114,7 +114,7 @@ withParameterizedPipeline(type, product, component, params.ENVIRONMENT, params.S
]
}

afterSuccess('functionalTest:idam-preview') {
afterAlways('functionalTest:idam-preview') {
archiveArtifacts '**/build/test-results/**/*'
archiveArtifacts '**/functional-output/**/*'

Expand Down

0 comments on commit 9e27705

Please sign in to comment.