Skip to content

Commit

Permalink
Move the closeBuildSuccessGithubIssue to post:always
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Jul 28, 2023
1 parent 99917a6 commit 3eb4fcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions jenkins/opensearch-dashboards/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ pipeline {
post {
always {
node(AGENT_X64) {
checkout scm
script {
buildInfoYaml(
componentName: COMPONENT_NAME,
Expand All @@ -857,13 +858,16 @@ pipeline {
)
unstash "buildInfo_yml"
archiveArtifacts artifacts: 'buildInfo.yml'
closeBuildSuccessGithubIssue(
message: buildMessage(search: 'Successfully built'),
inputManifestPath: "manifests/$INPUT_MANIFEST"
)
postCleanup()
}
}
}
success {
node(AGENT_X64) {
checkout scm
script {
List<String> stages = []
if (params.BUILD_PLATFORM.contains('linux')) {
Expand Down Expand Up @@ -898,10 +902,6 @@ pipeline {
manifest: "${INPUT_MANIFEST}"
)
}
closeBuildSuccessGithubIssue(
message: buildMessage(search: 'Successfully built'),
inputManifestPath: "manifests/$INPUT_MANIFEST"
)
postCleanup()
}
}
Expand Down
11 changes: 5 additions & 6 deletions jenkins/opensearch/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ pipeline {
post {
always {
node(AGENT_X64) {
checkout scm
script {
buildInfoYaml(
componentName: COMPONENT_NAME,
Expand All @@ -909,13 +910,16 @@ pipeline {
)
unstash "buildInfo_yml"
archiveArtifacts artifacts: 'buildInfo.yml'
closeBuildSuccessGithubIssue(
message: buildMessage(search: 'Successfully built'),
inputManifestPath: "manifests/$INPUT_MANIFEST"
)
postCleanup()
}
}
}
success {
node(AGENT_X64) {
checkout scm
script {
List<String> stages = []
if (params.BUILD_PLATFORM.contains('linux')) {
Expand Down Expand Up @@ -943,11 +947,6 @@ pipeline {
manifest: "${INPUT_MANIFEST}"
)
}
closeBuildSuccessGithubIssue(
message: buildMessage(search: 'Successfully built'),
inputManifestPath: "manifests/$INPUT_MANIFEST"
)

postCleanup()
}
}
Expand Down

0 comments on commit 3eb4fcb

Please sign in to comment.