Skip to content

Commit

Permalink
[CI] enable new flaky detector
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Mar 10, 2021
1 parent 0c6acc9 commit 5cbb938
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 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()}")
}
}
}
Expand All @@ -166,12 +166,13 @@ VERSION=${env.VERSION}-SNAPSHOT""")
/**
* There are only two supported branches, master and 7.x
*/
def getIdSuffix() {
def getFlakyJobName() {
def parent = env.JOB_NAME.replaceAll(env.JOB_BASE_NAME + '$', '')
if(isPR()) {
return getBranchIndice(env.CHANGE_TARGET)
return parent + getBranchIndice(env.CHANGE_TARGET)
}
if(isBranch()) {
return getBranchIndice(env.BRANCH_NAME)
return parent + getBranchIndice(env.BRANCH_NAME)
}
}

Expand Down

0 comments on commit 5cbb938

Please sign in to comment.