]> xenbits.xensource.com Git - libvirt.git/commitdiff
ci: Always run 'pages' job
authorPeter Krempa <pkrempa@redhat.com>
Fri, 31 May 2024 13:06:45 +0000 (15:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 31 May 2024 13:19:50 +0000 (15:19 +0200)
When the 'pages' job is configured to run 'on_success' it's skipped if
any other pipeline fails. This is bad in cases such as if an external
service runs out of CI minutes as the web stops being updated.

Since the 'artifacts' of the 'website_job' are generated only if that
phase succeeds this will update the web when the web part is buildable.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml

index 7f80896e6e7f9d5e3fb2b070bc56efc43b00cae1..d9d8b1e3cdbecc9a6967facbfdc65f9c7466d710 100644 (file)
@@ -96,7 +96,7 @@ pages:
     - website_job
   rules:
     - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
-      when: on_success
+      when: always
     - when: never
   artifacts:
     expose_as: 'pages'