gitlab-ci: add manual job to run Coverity
commit83aa1baa069c8f77aa9f7d9adfdeb11d90bdf78d
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 4 Mar 2024 18:16:50 +0000 (4 13:16 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Mar 2024 18:11:00 +0000 (8 19:11 +0100)
tree23c5734bbaf1b7109c956a86abe9e6067580dfe8
parent2f3e5e4c08c43daeec144adeeae9138176039b60
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>
.gitlab-ci.d/base.yml
.gitlab-ci.d/buildtest.yml
.gitlab-ci.d/opensbi.yml