Skip to content

Commit

Permalink
[CI] enable new flaky detector (#24464) (#24591)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Mar 18, 2021
1 parent 09fb470 commit c4dc87c
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 @@ -152,7 +152,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 @@ -161,11 +161,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 c4dc87c

Please sign in to comment.