diff mbox series

[XEN,1/2] automation: avoid pipelines on specific branches

Message ID c88fc56a8985acbdb2630a81c930ef12c0743c1b.1691760935.git.simone.ballarin@bugseng.com (mailing list archive)
State Superseded
Headers show
Series automation: avoid unnecessary analyses | expand

Commit Message

Simone Ballarin Aug. 11, 2023, 1:52 p.m. UTC
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>
---
 .gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefano Stabellini Aug. 11, 2023, 10:04 p.m. UTC | #1
On Fri, 11 Aug 2023, Simone Ballarin wrote:
> 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.
> 

Very good thanks!

One question on the commit message: what did you mean by "the job-level
exclusions have been removed as they are pointless with this new
workspace-level exclusion"

It doesn't look like any job-level exclusion has been removed by this
patch?



> Signed-off-by: Simone Ballarin <simone.ballarin@bugseng.com>
>
> ---
>  .gitlab-ci.yml | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index ee5430b8b7..ef4484e09a 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,3 +1,9 @@
> +workflow:
> +  rules:
> +    - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
> +      when: never
> +    - when: always
> +
>  stages:
>    - analyze
>    - build
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ee5430b8b7..ef4484e09a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,9 @@ 
+workflow:
+  rules:
+    - if: $CI_COMMIT_BRANCH =~ /^(master|smoke|^coverity-tested\/.*|stable-.*)$/
+      when: never
+    - when: always
+
 stages:
   - analyze
   - build