use tagged canvas-builds stable branch

Change-Id: Ia5780fc40b551acf3740fa5255057a1820c4a79f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256033
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
Aaron Ogata 2021-01-05 08:03:51 -08:00
parent 77a8a8ba0f
commit fc93a050e5
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -255,7 +255,7 @@ def getCanvasBuildsRefspec() {
def commitMessage = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : null
if(env.GERRIT_EVENT_TYPE == 'change-merged' || !commitMessage || !(commitMessage =~ CANVAS_BUILDS_REFSPEC_REGEX).find()) {
return 'master'
return env.GERRIT_BRANCH.contains('stable/') ? env.GERRIT_BRANCH : 'master'
}
return (commitMessage =~ CANVAS_BUILDS_REFSPEC_REGEX).findAll()[0][1]