-
Notifications
You must be signed in to change notification settings - Fork 4
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(jenkins): enable PR notification #488
Conversation
cleanup { | ||
notifyBuildResult() | ||
notifyBuildResult(prComment: true) |
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.
Flag to enable the comment in the GitHub PRs, then the rollout could be per project or globally :)
@@ -0,0 +1,82 @@ | |||
## ${statusSuccess ? ':green_heart: Build Succeeded' : ':broken_heart: Build Failed'} |
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 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.
I'd see convenient naming this template including "github-comment", something like:
groovy-markdown-custom-github-comment
groovy-markdown-custom-gh-comment
markdown-custom-github-comment
(maybe groovy could be omitted as implicit default)
I think it will add context to the reader when accessing this document. Wdyt?
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.
See 0a00f8fc079a80962a15df05bdff566595f9ca22 , in other words, using github-comment-markdown.template
since groovy and custom are not necessarily required as you spotted :)
"testsErrors": testsErrors, | ||
"testsSummary": testsSummary | ||
]) | ||
githubPrComment(message: body) |
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.
githubPrComment
got already a default template, so let's force the message to keep backward compatibility
@@ -88,5 +92,5 @@ def getLatestBuildComment() { | |||
def comments = getComments() | |||
return comments | |||
.reverse() | |||
.find { (it.user.login == 'elasticmachine') && it.body =~ /<!--PIPELINE/ } | |||
.find { (it.user.login == 'elasticmachine' || it.user.login == 'apmmachine') && it.body =~ /<!--PIPELINE/ } |
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.
Since we got a new service account the github pr comment reusiing approach was broken
…ions * upstream/master: docs: update CHANGELOG.md [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release v1.1.90 ci: jq is not installed in the master (#486)
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Log outputExpand to view the last 100 lines of log output
|
💔 Build FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
This reverts commit 36614f8.
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Log outputExpand to view the last 100 lines of log output
|
This reverts commit 65ddf73.
This reverts commit 0f7e60e.
The URLs have a
|
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.
This change is great!!!!
0a00f8f
to
48a1599
Compare
What does this PR do?
Why is it important?
Centralise the notifications and keep the information simple, therefore we can enhance the comment as much as required and build the reuse comment strategy.
Related issues
Caused by https://github.com/elastic/observability-robots/issues/37
Follow-ups
Tests
See #488 (comment) which has been generated when running the MBP in my local jenkins instance.
See #488 (comment) for a broken test build.
Reuse comment seems to be back to business