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:
parent
77a8a8ba0f
commit
fc93a050e5
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue