This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new ab4289d  [skip ci][ci] Add missing guard to skip CI check (#10625)
ab4289d is described below

commit ab4289d1af0deff5c680173a0ac49b74a2e69cbb
Author: driazati <[email protected]>
AuthorDate: Tue Mar 15 16:40:21 2022 -0700

    [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]>
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 8de3261..44f7b59 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -132,7 +132,7 @@ def cancel_previous_build() {
 }
 
 def should_skip_ci(pr_number) {
-  if (!env.BRANCH_NAME.startsWith('PR-')) {
+  if (env.BRANCH_NAME == null || !env.BRANCH_NAME.startsWith('PR-')) {
     // never skip CI on build sourced from a branch
     return false
   }

Reply via email to