only run Locales Only Changes stage for pre-merge

Change-Id: I44decd04cc35a179a69cc2951c106019b06bff15
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/289673
Reviewed-by: Bobby Buten <bobby.buten@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
This commit is contained in:
James Butters 2022-04-14 06:58:54 -06:00
parent 83f30dd355
commit 00a1c9e9e6
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -493,7 +493,7 @@ pipeline {
extendedStage('Locales Only Changes')
.hooks(buildSummaryReportHooks.call())
.obeysAllowStages(false)
.required(env.GERRIT_PROJECT == 'canvas-lms' && sh(script: "${WORKSPACE}/build/new-jenkins/locales-changes.sh", returnStatus: true) == 0)
.required(!configuration.isChangeMerged() && sh(script: "${WORKSPACE}/build/new-jenkins/locales-changes.sh", returnStatus: true) == 0)
.execute {
gerrit.submitLintReview('-2', 'This commit contains only changes to config/locales/, this could be a bad sign!')
}