]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
gitlab: mark job dependencies as optional
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 May 2022 11:47:07 +0000 (07:47 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 May 2022 12:11:15 +0000 (08:11 -0400)
The container jobs are all optional in upstream now, only
running if dockerfile changes were made. Thus any build
jobs which reference the container jobs need to mark their
dependency as optional too.

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml

index 0fbdd82aaefa1f2b1e2c792c74cf05b801fcdbb7..6a8b89729f44b2dd38c226d3946f931e90b92d03 100644 (file)
@@ -62,7 +62,8 @@ website:
   stage: builds
   image: $CI_REGISTRY_IMAGE/ci-almalinux-8:latest
   needs:
-    - x86_64-almalinux-8-container
+    - job: x86_64-almalinux-8-container
+      optional: true
   before_script:
     - *script_variables
   script:
@@ -82,7 +83,8 @@ codestyle:
   stage: sanity_checks
   image: $CI_REGISTRY_IMAGE/ci-opensuse-leap-153:latest
   needs:
-    - x86_64-opensuse-leap-153-container
+    - job: x86_64-opensuse-leap-153-container
+      optional: true
   before_script:
     - *script_variables
   script:
@@ -98,7 +100,8 @@ potfile:
   stage: builds
   image: $CI_REGISTRY_IMAGE/ci-almalinux-8:latest
   needs:
-    - x86_64-almalinux-8-container
+    - job: x86_64-almalinux-8-container
+      optional: true
   rules:
     - if: "$CI_COMMIT_BRANCH == 'master'"
   before_script:
@@ -120,7 +123,8 @@ potfile:
 coverity:
   image: $CI_REGISTRY_IMAGE/ci-almalinux-8:latest
   needs:
-    - x86_64-almalinux-8-container
+    - job: x86_64-almalinux-8-container
+      optional: true
   stage: builds
   script:
     - curl https://scan.coverity.com/download/linux64 --form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN -o /tmp/cov-analysis-linux64.tgz