GitLab
Reads GET /api/v4/version for the version.
targets: - id: gitlab-main product: gitlab address: https://gitlab.example.com credentials: gitlab-tokenAuthentication
Section titled “Authentication”GitLab requires a credential for this endpoint by default — an
unauthenticated request gets a 401. A personal access token works both
ways, confirmed live against a real instance:
credentials: gitlab-token: kind: token-header header: PRIVATE-TOKEN value: "${GITLAB_TOKEN}"
# equally valid — the same token as a bare bearer token gitlab-token-bearer: kind: bearer value: "${GITLAB_TOKEN}"Recorded fields
Section titled “Recorded fields”versionextra.revision, when presentextra.enterprise—"true"/"false", GitLab EE vs. CE
Lifecycle resolver
Section titled “Lifecycle resolver”endoflife:gitlab.