Skip to content

Commit 63c2521

Browse files
Spencerspalgerelasticmachine
authored
[7.8] include ci-stats metrics in pr comment (#68563) (#69097)
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # Jenkinsfile
1 parent 74fbdc2 commit 63c2521

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ library 'kibana-pipeline-library'
44
kibanaLibrary.load()
55

66
kibanaPipeline(timeoutMinutes: 135, checkPrChanges: true) {
7-
ciStats.trackBuild {
8-
githubPr.withDefaultPrComments {
7+
githubPr.withDefaultPrComments {
8+
ciStats.trackBuild {
99
catchError {
1010
retryable.enable()
1111
parallel([
@@ -53,10 +53,10 @@ kibanaPipeline(timeoutMinutes: 135, checkPrChanges: true) {
5353
])
5454
}
5555
}
56+
}
5657

57-
if (params.NOTIFY_ON_FAILURE) {
58-
slackNotifications.onFailure()
59-
kibanaPipeline.sendMail()
60-
}
58+
if (params.NOTIFY_ON_FAILURE) {
59+
slackNotifications.onFailure()
60+
kibanaPipeline.sendMail()
6161
}
6262
}

vars/githubPr.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def getNextCommentMessage(previousCommentInfo = [:]) {
186186
}
187187

188188
messages << getTestFailuresMessage()
189+
messages << ciStats.getMetricsReport()
189190

190191
if (info.builds && info.builds.size() > 0) {
191192
messages << getHistoryText(info.builds)

0 commit comments

Comments
 (0)