[OS-BUILD PATCH 1/2] Auto-cancel pipelines only on MRs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michael Hofmann <mhofmann@xxxxxxxxxx>

Auto-cancel pipelines only on MRs

The interruptible keyword determines whether pipelines can be
auto-cancelled.

For kernel testing pipelines, this should only be done for MRs. Baseline
pipelines on ark-latest shouldn't cancel but run to completion.

For all other non-MR pipelines (scheduled/HEAD os-build), these should
also not be cancelled.

Therefore, use a conditional include to only configure jobs to be
interruptible in MR pipelines.

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,15 +9,16 @@ include:
   - project: cki-project/pipeline-definition
     ref: production
     file: kernel_templates.yml
+  - project: cki-project/cki-lib
+    ref: production
+    file: .gitlab/ci_templates/interruptible.yml
+    if: $CI_PIPELINE_SOURCE == "merge_request_event"
 
 stages:
   - test
   - build
   - deploy
 
-default:
-  interruptible: true
-
 workflow:
   rules:
     # ARK release pipelines

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2598
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux