fix: adds the CI_JOB_TOKEN for ensure-job-added and not added (partialy fixes: #11)

What does this MR do and why?

This MR addresses #11 in two cases: the ensure_job_added and ensure_job_not_added require the CI_JOB_TOKEN in their curl queries on self hosted instances internal/private projects.

Does not cover the scope of #18 (more inside this issue regarding the license check failing).

MR acceptance checklist

  • Still works on public project (example with gitlab.com)
  • Improves passing steps in self hosted contexts (see image bellow).

Screenshots or screen recordings

Self hosted private project

Before: image

After: image

GitLab.com

Post change:

image

How to set up and validate locally

  • Fork the project on a local gitlab instance.
  • make sure the porject or internal or private
  • run the pipeline

Apply the changes

  • on push the pipeline should have some steps turning to green (success) instead of red (fail)
Edited by Luilegeant

Merge request reports

Loading