Skip to content

Commit

Permalink
[CI] enable new flaky detector (elastic#24464)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored and narph committed Mar 17, 2021
1 parent 06a5919 commit b9f3210
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 b9f3210

Please sign in to comment.