Skip to content

Commit

Permalink
[7.x] include ci-stats metrics in pr comment (#68563) (#69096)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
3 people authored Jun 13, 2020
1 parent cfb2e71 commit 5495552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ library 'kibana-pipeline-library'
kibanaLibrary.load()

kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true) {
ciStats.trackBuild {
githubPr.withDefaultPrComments {
githubPr.withDefaultPrComments {
ciStats.trackBuild {
catchError {
retryable.enable()
parallel([
Expand Down Expand Up @@ -53,10 +53,10 @@ kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true) {
])
}
}
}

if (params.NOTIFY_ON_FAILURE) {
slackNotifications.onFailure()
kibanaPipeline.sendMail()
}
if (params.NOTIFY_ON_FAILURE) {
slackNotifications.onFailure()
kibanaPipeline.sendMail()
}
}
1 change: 1 addition & 0 deletions vars/githubPr.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def getNextCommentMessage(previousCommentInfo = [:]) {
}

messages << getTestFailuresMessage()
messages << ciStats.getMetricsReport()

if (info.builds && info.builds.size() > 0) {
messages << getHistoryText(info.builds)
Expand Down

0 comments on commit 5495552

Please sign in to comment.