Context:
- GitLab Enterprise Edition [12.10.8-ee]
Given:
- I create a private repository and a pipeline with these contents:
stages: - test build:app: variables: stage: test script: curl --request POST --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" --data "{ \"name\": \"Release test\", \"tag_name\": \"test\", \"ref\": \"master\", \"description\": \"Release\"}" --header 'Content-Type: application/json' ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases
Result:
- I get
{"message":"401 Unauthorized"}
when running the stage.
Question:
- Why this does not work when it should, at least from documentation point of view (Develop with GitLab | GitLab)?