Allow authenticated access to the GitLab jobs control API endpoint

Created on 14 January 2024, 10 months ago
Updated 6 February 2024, 9 months ago

Problem/Motivation

When using a REST API Client we are unable to retry a job (and possibly not run/cancel jobs though that has not been tested)

Retry may be necessary to determine if a failure is a random failure or an actual fault. Cancel is useful to end runs to save CI resources.

Steps to reproduce

Documented in GitLab REST API documentation:
https://docs.gitlab.com/ee/api/jobs.html (Cancel a job, Retry a Job, Run a job)

curl --request POST --header "PRIVATE-TOKEN: your_access_token" "https://git.drupalcode.org/api/v4/projects/:id/jobs/:job_id/retry"

Proposed resolution

Allow the events related endpoint for GET requests.

Remaining tasks

Modify CDN access rules

User interface changes

None

API changes

Additional GitLab API allowed

Data model changes

None

✨ Feature request
Status

Fixed

Component

GitLab

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024