mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[CI] Don't do CI stats reporting/failures for feature branch PRs (#99668)
This commit is contained in:
parent
38116e89fd
commit
7262ac53c2
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) {
|
kibanaPipeline(timeoutMinutes: 210, checkPrChanges: true, setCommitStatus: true) {
|
||||||
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
|
slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) {
|
||||||
githubPr.withDefaultPrComments {
|
githubPr.withDefaultPrComments {
|
||||||
ciStats.trackBuild(requireSuccess: githubPr.isPr()) {
|
ciStats.trackBuild(requireSuccess: githubPr.isTrackedBranchPr()) {
|
||||||
catchError {
|
catchError {
|
||||||
retryable.enable()
|
retryable.enable()
|
||||||
kibanaPipeline.allCiTasks()
|
kibanaPipeline.allCiTasks()
|
||||||
|
|
|
@ -64,6 +64,10 @@ def isPr() {
|
||||||
return !!(env.ghprbPullId && env.ghprbPullLink && env.ghprbPullLink =~ /\/elastic\/kibana\//)
|
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() {
|
def getLatestBuildComment() {
|
||||||
return getComments()
|
return getComments()
|
||||||
.reverse()
|
.reverse()
|
||||||
|
@ -234,8 +238,10 @@ def getNextCommentMessage(previousCommentInfo = [:], isFinal = false) {
|
||||||
|
|
||||||
messages << getTestFailuresMessage()
|
messages << getTestFailuresMessage()
|
||||||
|
|
||||||
if (isFinal) {
|
catchErrors {
|
||||||
messages << ciStats.getMetricsReport()
|
if (isFinal && isTrackedBranchPr()) {
|
||||||
|
messages << ciStats.getMetricsReport()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.builds && info.builds.size() > 0) {
|
if (info.builds && info.builds.size() > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue