XLR GitLab Task: Run a Job in a Gitlab Pipeline, using the "Run a Job" API call - https://docs.gitlab.com/api/jobs/#run-a-job?

Comments

  • For deploying their software, our developers defined a GitLab CD pipeline in which they deploy their application in different environments. For each environment a specific stage is defined in the deployment pipeline.
    Between these stages the pipelines stops and waits for a (manual) trigger to carry on with the next stage.

    The last stage - the deployment into the production environment - shall be triggered from XL-Release as part of the release process. Therefore we would need an XLR-plugin for GitLab which is able to take a project id (of the project in which the pipeline is defined) and the id of the job which is currently waiting for the trigger so to start the stage for production deployment for the job in GitLab.

    This is the GitLab API which needs to be called:

    https://gitlab.com/api/v4/projects/<project_id>/jobs/<job_id>/play

  • This change is planned for 25.3 release.