]> xenbits.xensource.com Git - xen.git/commitdiff
automation: avoid pipelines on specific branches
authorSimone Ballarin <simone.ballarin@bugseng.com>
Mon, 21 Aug 2023 08:54:07 +0000 (10:54 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 23 Aug 2023 19:46:24 +0000 (12:46 -0700)
This patch avoids the execution of pipelines in the
following branches:
- master
- smoke
- coverirty-tested/.*
- stable-.*

The job-level exclusions have been removed as they are
pointless with this new workspace-level exclusion.

Signed-off-by: Simone Ballarin <simone.ballarin@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
.gitlab-ci.yml
automation/gitlab-ci/build.yaml
automation/gitlab-ci/test.yaml

index ee5430b8b750ea68c1508f8b0d3dcffde9634f97..ef4484e09ab455dc2b49e4a018595dc14f331cb6 100644 (file)
@@ -1,3 +1,9 @@
+workflow:
+  rules:
+    - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
+      when: never
+    - when: always
+
 stages:
   - analyze
   - build
index 1a4a5e490dd376c49dfd22c7515d1b7911f85506..b633facff456eb7c4b5a38b512f8573d073b4486 100644 (file)
       - '*/*.log'
     when: always
   needs: []
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 .gcc-tmpl:
   variables: &gcc
 .yocto-test:
   stage: build
   image: registry.gitlab.com/xen-project/xen/${CONTAINER}
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
   script:
     - ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD} ${YOCTO_OUTPUT}
   variables:
 .test-jobs-artifact-common:
   stage: build
   needs: []
-  except: !reference [.test-jobs-common, except]
 
 # Arm test artifacts
 
index 810631bc462419b5fc862c05b20b611a2dddb811..8737f367c8f0e3c83dd01defaf53ed2de08c7e74 100644 (file)
@@ -1,11 +1,6 @@
 .test-jobs-common:
   stage: test
   image: registry.gitlab.com/xen-project/xen/${CONTAINER}
-  except:
-    - master
-    - smoke
-    - /^coverity-tested\/.*/
-    - /^stable-.*/
 
 .arm64-test-needs: &arm64-test-needs
   - alpine-3.18-arm64-rootfs-export