Skip to content

Commit

Permalink
fix missing always block inside post (#2029)
Browse files Browse the repository at this point in the history
* fix missing always block inside post

Signed-off-by: Tianle Huang <[email protected]>

* fix osd

Signed-off-by: Tianle Huang <[email protected]>
  • Loading branch information
tianleh authored Apr 22, 2022
1 parent 508768b commit b9f83df
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
32 changes: 18 additions & 14 deletions jenkins/opensearch-dashboards/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
}
Expand Down Expand Up @@ -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()
}
}
}
}
Expand Down
18 changes: 10 additions & 8 deletions jenkins/opensearch/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,17 @@ 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()
}
}
}
}
}
Expand Down

0 comments on commit b9f83df

Please sign in to comment.