-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Slack notification on failure #1349
Add Slack notification on failure #1349
Conversation
[skip ci] Fixes eclipse-openj9#975 Signed-off-by: Adam Brousseau <adam.brousseau88@gmail.com>
post { | ||
failure { | ||
slackSend channel: '#jenkins', color: 'danger', message: "Failed: ${env.JOB_NAME} #${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you expand on the message? It will be easier for the people viewing the #jenkins channel if the message is something like "OMR mirror to openj9-omr failed: ${env.JOB_NAME} #${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdamBrousseau pointed out that the job names are reasonably descriptive so the message change isn't necessary
post { | ||
failure { | ||
slackSend channel: '#jenkins', color: 'danger', message: "Failed: ${env.JOB_NAME} #${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this pick up the same pipeline configuration or does it need to be told which Slack instance in some other way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and that the slack is picked up from the Jenkins config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Skipping the PR build as this can only be tested by a failing OMR mirror build. |
[skip ci]
Fixes #975
Signed-off-by: Adam Brousseau adam.brousseau88@gmail.com