aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d/opensbi.yml
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-03-04 13:16:50 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2024-03-08 19:11:00 +0100
commit83aa1baa069c8f77aa9f7d9adfdeb11d90bdf78d (patch)
tree23c5734bbaf1b7109c956a86abe9e6067580dfe8 /.gitlab-ci.d/opensbi.yml
parent2f3e5e4c08c43daeec144adeeae9138176039b60 (diff)
gitlab-ci: add manual job to run Coverity
Add a job that can be run, either manually or on a schedule, to upload a build to Coverity Scan. The job uses the run-coverity-scan script in multiple phases of check, download tools and upload, in order to avoid both wasting time (skip everything if you are above the upload quota) and avoid filling the log with the progress of downloading the tools. The job is intended to run on a scheduled pipeline run, and scheduled runs will not get any other job. It requires two variables to be in GitLab CI, COVERITY_TOKEN and COVERITY_EMAIL. Those are already set up in qemu-project's configuration as protected and masked variables. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.gitlab-ci.d/opensbi.yml')
-rw-r--r--.gitlab-ci.d/opensbi.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml
index fd293e6c31..42f137d624 100644
--- a/.gitlab-ci.d/opensbi.yml
+++ b/.gitlab-ci.d/opensbi.yml
@@ -24,6 +24,10 @@
- if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_MESSAGE =~ /opensbi/i'
when: manual
+ # Scheduled runs on mainline don't get pipelines except for the special Coverity job
+ - if: '$CI_PROJECT_NAMESPACE == $QEMU_CI_UPSTREAM && $CI_PIPELINE_SOURCE == "schedule"'
+ when: never
+
# Run if any files affecting the build output are touched
- changes:
- .gitlab-ci.d/opensbi.yml