ci: make some jobs interruptible
Jobs that don't interact with clouds can be canceled at any time without the risk of leaving unused resources in the cloud. This enables the use of "automatic cancellation of redundant pipelines" which means that if and update is pushed to an open PR the current running pipeline is canceled. This is done by adding an "interruptible" flag to the jobs. Default value is false so only jobs that have it explicitly set to true will be canceled.
This commit is contained in:
parent
c38ebb1643
commit
8136e0f069
1 changed files with 10 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ init:
|
|||
- shell
|
||||
script:
|
||||
- schutzbot/update_github_status.sh start
|
||||
interruptible: true
|
||||
|
||||
RPM:
|
||||
stage: rpmbuild
|
||||
|
|
@ -44,6 +45,7 @@ RPM:
|
|||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
script:
|
||||
- sh "schutzbot/mockbuild.sh"
|
||||
interruptible: true
|
||||
after_script:
|
||||
- schutzbot/update_github_status.sh update
|
||||
- schutzbot/save_journal.sh
|
||||
|
|
@ -75,6 +77,7 @@ Container:
|
|||
- if: '$CI_PIPELINE_SOURCE != "schedule"'
|
||||
script:
|
||||
- sh "schutzbot/containerbuild.sh"
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
@ -88,6 +91,7 @@ Prepare-rhel-internal:
|
|||
- if: '$CI_PIPELINE_SOURCE == "schedule" && $RUNNER =~ /[\S]+rhel-8.6-[^ga][\S]+/ && $NIGHTLY == "true" && $RHEL_MAJOR == "8"'
|
||||
script:
|
||||
- schutzbot/prepare-rhel-internal.sh
|
||||
interruptible: true
|
||||
artifacts:
|
||||
paths:
|
||||
- rhel-${RHEL_MAJOR}.json
|
||||
|
|
@ -113,6 +117,7 @@ Base:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/base_tests.sh
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
@ -168,6 +173,7 @@ Regression:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/regression.sh
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
@ -200,6 +206,7 @@ OSTree:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/ostree.sh
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
@ -345,6 +352,7 @@ libvirt:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/libvirt.sh
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
@ -364,6 +372,7 @@ RHEL 9 on 8:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/koji.sh
|
||||
interruptible: true
|
||||
variables:
|
||||
RUNNER: aws/rhel-8.4-ga-x86_64
|
||||
INTERNAL_NETWORK: "true"
|
||||
|
|
@ -398,6 +407,7 @@ Installer:
|
|||
script:
|
||||
- schutzbot/deploy.sh
|
||||
- /usr/libexec/tests/osbuild-composer/installers.sh
|
||||
interruptible: true
|
||||
parallel:
|
||||
matrix:
|
||||
- RUNNER:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue