Skip to content

Commit 44bcbe1

Browse files
authored
[release] disable the stable branch (elastic#2258)
1 parent 25d0cd5 commit 44bcbe1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ci/release/Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,14 @@ pipeline {
8181
when {
8282
allOf {
8383
expression { params.check_branch_ci_status }
84-
not { branch 'stable' }
84+
expression { env.BRANCH_SPECIFIER != 'stable' }
8585
}
8686
}
8787
steps {
8888
// If this build is not green: https://apm-ci.elastic.co/job/apm-agent-java/job/apm-agent-java-mbp/job/"${BRANCH_SPECIFIER}"/
8989
whenTrue(!buildStatus(host: 'apm-ci.elastic.co', job: ['apm-agent-java', 'apm-agent-java-mbp', "${BRANCH_SPECIFIER}"], return_boolean: true)) {
90+
notifyStatus(slackStatus: 'warning', subject: "[${env.REPO}] The ${BRANCH_SPECIFIER} build is not passing",
91+
body: "Please go to (<${env.BUILD_URL}input|here>) to approve or reject within 12 hours.")
9092
input(message: "WARNING! The ${BRANCH_SPECIFIER} build is not passing. Do you wish to continue?")
9193
}
9294
}

0 commit comments

Comments
 (0)