mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
a5745393cc
commit
761dc11555
2 changed files with 9 additions and 3 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -6,7 +6,7 @@ kibanaLibrary.load()
|
|||
kibanaPipeline(timeoutMinutes: 210, checkPrChanges: true, setCommitStatus: true) {
|
||||
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
|
||||
githubPr.withDefaultPrComments {
|
||||
ciStats.trackBuild(requireSuccess: githubPr.isPr()) {
|
||||
ciStats.trackBuild(requireSuccess: githubPr.isTrackedBranchPr()) {
|
||||
catchError {
|
||||
retryable.enable()
|
||||
kibanaPipeline.allCiTasks()
|
||||
|
|
|
@ -64,6 +64,10 @@ def isPr() {
|
|||
return !!(env.ghprbPullId && env.ghprbPullLink && env.ghprbPullLink =~ /\/elastic\/kibana\//)
|
||||
}
|
||||
|
||||
def isTrackedBranchPr() {
|
||||
return isPr() && (env.ghprbTargetBranch == 'master' || env.ghprbTargetBranch == '6.8' || env.ghprbTargetBranch =~ /[7-8]\.[x0-9]+/)
|
||||
}
|
||||
|
||||
def getLatestBuildComment() {
|
||||
return getComments()
|
||||
.reverse()
|
||||
|
@ -234,8 +238,10 @@ def getNextCommentMessage(previousCommentInfo = [:], isFinal = false) {
|
|||
|
||||
messages << getTestFailuresMessage()
|
||||
|
||||
if (isFinal) {
|
||||
messages << ciStats.getMetricsReport()
|
||||
catchErrors {
|
||||
if (isFinal && isTrackedBranchPr()) {
|
||||
messages << ciStats.getMetricsReport()
|
||||
}
|
||||
}
|
||||
|
||||
if (info.builds && info.builds.size() > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue