skip linters for cron job

Change-Id: I0c3a24600d583f7472a5d9f4aa318db1e4a1ae0b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287542
Reviewed-by: Bobby Buten <bobby.buten@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
Aaron Ogata 2022-03-21 07:15:33 -07:00
parent b2511d149a
commit 242ec01b06
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -552,7 +552,7 @@ pipeline {
extendedStage('Linters')
.hooks([onNodeReleasing: lintersStage.tearDownNode()])
.nodeRequirements(label: 'canvas-docker', podTemplate: lintersStage.nodeRequirementsTemplate())
.required(!configuration.isChangeMerged())
.required(!configuration.isChangeMerged() && env.GERRIT_PATCHSET_REVISION != '0')
.execute {
def nestedStages = [:]

View File

@ -4,6 +4,6 @@ set -ex
export GERGICH_REVIEW_LABEL="Lint-Review"
gergich status
if [[ "$GERGICH_PUBLISH" == "1" && "$GERRIT_PATCHSET_REVISION" != "0" ]]; then
if [[ "$GERGICH_PUBLISH" == "1" ]]; then
GERGICH_GIT_PATH=".." gergich publish
fi