From bfe9ea422d6ad77039f7040e70d5425dad487ed8 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 18 Mar 2021 20:20:59 +0000 Subject: [PATCH] [CI] enable new flaky detector (#24464) (#24590) --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 49398c4191e..8d4cae09d7e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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())) } } } @@ -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) } }