Skip to content

Commit ab4289d

Browse files
authored
[skip ci][ci] Add missing guard to skip CI check (#10625)
This was failing in the docker image validation since the `BRANCH_NAME` environment variable wasn't set. The part in question still runs even with the `skip ci` https://ci.tlcpack.ai/blue/organizations/jenkins/docker-images-ci%2Fdocker-image-run-tests/detail/docker-image-run-tests/62/pipeline/ cc @areusch Co-authored-by: driazati <[email protected]>
1 parent 0d068f4 commit ab4289d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def cancel_previous_build() {
132132
}
133133

134134
def should_skip_ci(pr_number) {
135-
if (!env.BRANCH_NAME.startsWith('PR-')) {
135+
if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) {
136136
// never skip CI on build sourced from a branch
137137
return false
138138
}

0 commit comments

Comments
 (0)