File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ how to trigger the `deploy_docker` job
26
26
by using ` curl ` .
27
27
28
28
``` bash
29
- curl -u ${CIRCLE_API_TOKEN } : \
29
+ curl -u ${CIRCLE_API_USER_TOKEN } : \
30
30
-d build_parameters[CIRCLE_JOB]=deploy_docker \
31
31
https://circleci.com/api/v1.1/project/< vcs-type> /< org> /< repo> /tree/< branch>
32
32
```
33
33
34
34
Some notes on the variables
35
35
used in this example:
36
- - ` CIRCLE_API_TOKEN ` is a [ personal API token] ({{ site.baseurl }}/2.0/managing-api-tokens/#creating-a-personal-api-token).
36
+ - ` CIRCLE_API_USER_TOKEN ` is a [ personal API token] ({{ site.baseurl }}/2.0/managing-api-tokens/#creating-a-personal-api-token).
37
37
- ` <vcs-type> ` is a placeholder variable
38
38
and refers to your chosen VCS (either ` github ` or ` bitbucket ` ).
39
39
- ` <org> ` is a placeholder variable
82
82
command : |
83
83
# replace this with your build/deploy check (i.e. current branch is "release")
84
84
if [[ true ]]; then
85
- curl --user ${CIRCLE_API_TOKEN }: \
85
+ curl --user ${CIRCLE_API_PROJECT_TOKEN }: \
86
86
--data build_parameters[CIRCLE_JOB]=deploy_docker \
87
87
--data revision=$CIRCLE_SHA1 \
88
88
https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH
You can’t perform that action at this time.
0 commit comments