Skip to content

CI: fixing cdash links on forks

Guillaume Pasero requested to merge ci_cdash_on_forks into develop

The cdash links are a bit tricky when doing MR between a fork and the official repo:

  • normally, the statuses API should be used on the target project (because it is the one carrying the MR)
  • however, the personal API token of the contributor may not allow to use Gitlab API on the official repository.
  • but, it appears that using the fork ID and the default CI_COMMIT_REF_NAME as the ref parameter of statuses will send the links to the MR pipeline, maybe because in this particular case it also has the tag latest ...

Anyway, to illustrate this obscure issue, some example with different id and ref parameters for the statuses API:

Merge request reports