Commit 3f549e62 authored by Mihai Nita's avatar Mihai Nita

Renamed OKAPI_TRIGGER_TOKEN to TRIGGER_TOKEN_OKAPI (better grouping)

parent 1917335c
Pipeline #49820991 (#18) passed with stages
in 5 minutes and 6 seconds
......@@ -76,7 +76,7 @@ For extra details please refer to [the original GitLab guide](https://docs.gitla
When you get done with the Bitbucket integration, make sure the
following variables are declared:
`OKAPI_TRIGGER_TOKEN`: the trigger token which has to be added to the
`TRIGGER_TOKEN_OKAPI`: the trigger token which has to be added to the
Okapi project before that (needs to be added under
**Settings > CI/CD > Variables**)
......@@ -87,7 +87,7 @@ Okapi project before that (needs to be added under
So, the following line from the `.gitlab-ci.yml` can be executed successfully:
```
curl -X POST -F token=${OKAPI_TRIGGER_TOKEN} -F ref=${OKAPI_SNAPSHOTS_BRANCH} https://gitlab.com/api/v4/projects/${OKAPI_PROJECT_ID}/trigger/pipeline
curl -X POST -F token=${TRIGGER_TOKEN_OKAPI} -F ref=${OKAPI_SNAPSHOTS_BRANCH} https://gitlab.com/api/v4/projects/${OKAPI_PROJECT_ID}/trigger/pipeline
```
# Sonatype integration
......
......@@ -88,7 +88,7 @@ release:
okapi-snapshot-trigger:
stage: trigger
script:
- curl -X POST -F token=${OKAPI_TRIGGER_TOKEN} -F ref=${OKAPI_SNAPSHOTS_BRANCH} https://gitlab.com/api/v4/projects/${OKAPI_PROJECT_ID}/trigger/pipeline
- curl -X POST -F token=${TRIGGER_TOKEN_OKAPI} -F ref=${OKAPI_SNAPSHOTS_BRANCH} https://gitlab.com/api/v4/projects/${OKAPI_PROJECT_ID}/trigger/pipeline
- touch ${CI_GITLAB_PATH}/${CI_JOB_NAME}-passed
only:
variables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment