Skip to content

Commit

Permalink
[CI] enable new flaky detector (#24464) (#24590)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Mar 18, 2021
1 parent 988179f commit bfe9ea4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ VERSION=${env.VERSION}-SNAPSHOT""")
dir("${BASE_DIR}"){
notifyBuildResult(prComment: true,
slackComment: true, slackNotify: (isBranch() || isTag()),
analyzeFlakey: !isTag(), flakyReportIdx: "reporter-beats-beats-${getIdSuffix()}")
analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: getFlakyBranch()))
}
}
}
Expand All @@ -166,11 +166,10 @@ VERSION=${env.VERSION}-SNAPSHOT""")
/**
* There are only two supported branches, master and 7.x
*/
def getIdSuffix() {
def getFlakyBranch() {
if(isPR()) {
return getBranchIndice(env.CHANGE_TARGET)
}
if(isBranch()) {
} else {
return getBranchIndice(env.BRANCH_NAME)
}
}
Expand Down

0 comments on commit bfe9ea4

Please sign in to comment.