automation: avoid pipelines on specific branches

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>
This commit is contained in:
Simone Ballarin authored and Stefano Stabellini committed 2023-08-23 12:46:24 -07:00
1 parent 7c1bf8661d
commit 6295f06a34
3 files changed
+6 -16

No files matched your search

+6
View File
@@ -1,3 +1,9 @@
workflow:
rules:
- if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
when: never
- when: always
stages:
- analyze
- build
-11
View File
@@ -12,11 +12,6 @@
- '*/*.log'
when: always
needs: []
except:
- master
- smoke
- /^coverity-tested\/.*/
- /^stable-.*/
.gcc-tmpl:
variables: &gcc
@@ -214,11 +209,6 @@
.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:
@@ -269,7 +259,6 @@
.test-jobs-artifact-common:
stage: build
needs: []
except: !reference [.test-jobs-common, except]
# Arm test artifacts
-5
View 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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.