-
Notifications
You must be signed in to change notification settings - Fork 468
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
[ci] Enable Slack notifications on daily job status #6746
[ci] Enable Slack notifications on daily job status #6746
Conversation
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
|
🌐 Coverage report
|
/test |
@@ -59,7 +59,7 @@ pipeline { | |||
} | |||
post { | |||
cleanup { | |||
notifyBuildResult(prComment: false, slackHeader: "Integration job failed ${env.JENKINS_URL}search/?q=${env.INTEGRATION_JOB.replaceAll('/','+')}") | |||
notifyBuildResult(prComment: false, slackComment: true, slackHeader: "Integration job failed ${env.JENKINS_URL}search/?q=${env.INTEGRATION_JOB.replaceAll('/','+')}") |
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.
There should not be needed to add this parameter, since SLACK_CHANNEL
environment variable is defined here, according to the notifyBuildResult
function
Could it be that the slack channel is missing some App?
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.
Dismiss the previous comment, re-checking the code, indeed, that parameter is needed.
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
@@ -59,7 +59,7 @@ pipeline { | |||
} | |||
post { | |||
cleanup { | |||
notifyBuildResult(prComment: false, slackHeader: "Integration job failed ${env.JENKINS_URL}search/?q=${env.INTEGRATION_JOB.replaceAll('/','+')}") | |||
notifyBuildResult(prComment: false, slackComment: true, slackHeader: "Integration job failed ${env.JENKINS_URL}search/?q=${env.INTEGRATION_JOB.replaceAll('/','+')}") |
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.
Dismiss the previous comment, re-checking the code, indeed, that parameter is needed.
What does this PR do?
As a minor improvement into the visibility of failures in the daily integration job, attempt to enable Slack notifications.
From digging into the pipeline library, the current config is missing
slackComment: true
when notifying on the build status.Related issues
Relates to #6071.