include ci-stats metrics in pr comment (#68563)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Spencer 2020-06-12 16:37:38 -07:00 committed by GitHub
parent 6f084dfa92
commit 0577f9bdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

12
Jenkinsfile vendored
View file

@ -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([
@ -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()
}
}

View file

@ -186,6 +186,7 @@ def getNextCommentMessage(previousCommentInfo = [:]) {
}
messages << getTestFailuresMessage()
messages << ciStats.getMetricsReport()
if (info.builds && info.builds.size() > 0) {
messages << getHistoryText(info.builds)