diff --git a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile index 95411737e1..10a25784f9 100644 --- a/jenkins/opensearch-dashboards/distribution-build.jenkinsfile +++ b/jenkins/opensearch-dashboards/distribution-build.jenkinsfile @@ -193,14 +193,16 @@ pipeline { } } post { - script { - lib.jenkins.Messages.new(this).add( - "${STAGE_NAME}", - lib.jenkins.Messages.new(this).get(["${STAGE_NAME}"]) + - "\n${env.RPM_VALIDATION_X64_RPM_TEST_RESULT}" - ) + always { + script { + lib.jenkins.Messages.new(this).add( + "${STAGE_NAME}", + lib.jenkins.Messages.new(this).get(["${STAGE_NAME}"]) + + "\n${env.RPM_VALIDATION_X64_RPM_TEST_RESULT}" + ) - postCleanup() + postCleanup() + } } } } @@ -390,14 +392,16 @@ pipeline { } } post { - script { - lib.jenkins.Messages.new(this).add( - "${STAGE_NAME}", - lib.jenkins.Messages.new(this).get(["${STAGE_NAME}"]) + - "\n${env.RPM_VALIDATION_ARM64_RPM_TEST_RESULT}" - ) + always { + script { + lib.jenkins.Messages.new(this).add( + "${STAGE_NAME}", + lib.jenkins.Messages.new(this).get(["${STAGE_NAME}"]) + + "\n${env.RPM_VALIDATION_ARM64_RPM_TEST_RESULT}" + ) - postCleanup() + postCleanup() + } } } }