Skip to content

Commit

Permalink
Add back notifications in OSD dist build
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Jan 31, 2022
1 parent 66a8221 commit d526913
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions jenkins/opensearch-dashboards/distribution-build.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,41 +134,41 @@ pipeline {
}
}
}
// post {
// success {
// node('Jenkins-Agent-al2-x64-c54xlarge-Docker-Host') {
// script {
// def stashed = lib.jenkins.Messages.new(this).get([
// 'build-linux-x64',
// 'build-archive-linux-arm64',
// 'assemble-archive-linux-arm64'
// ])
post {
success {
node('Jenkins-Agent-al2-x64-c54xlarge-Docker-Host') {
script {
def stashed = lib.jenkins.Messages.new(this).get([
'build-linux-x64',
'build-archive-linux-arm64',
'assemble-archive-linux-arm64'
])

// publishNotification(
// icon: ':white_check_mark:',
// message: 'Successful Build',
// extra: stashed,
// credentialsId: 'BUILD_NOTICE_WEBHOOK',
// manifest: "${INPUT_MANIFEST}"
// )
publishNotification(
icon: ':white_check_mark:',
message: 'Successful Build',
extra: stashed,
credentialsId: 'BUILD_NOTICE_WEBHOOK',
manifest: "${INPUT_MANIFEST}"
)

// postCleanup()
// }
// }
// }
// failure {
// node('Jenkins-Agent-al2-x64-c54xlarge-Docker-Host') {
// script {
// publishNotification(
// icon: ':warning:',
// message: 'Failed Build',
// credentialsId: 'BUILD_NOTICE_WEBHOOK',
// manifest: "${INPUT_MANIFEST}"
// )
postCleanup()
}
}
}
failure {
node('Jenkins-Agent-al2-x64-c54xlarge-Docker-Host') {
script {
publishNotification(
icon: ':warning:',
message: 'Failed Build',
credentialsId: 'BUILD_NOTICE_WEBHOOK',
manifest: "${INPUT_MANIFEST}"
)

// postCleanup()
// }
// }
// }
// }
postCleanup()
}
}
}
}
}

0 comments on commit d526913

Please sign in to comment.