Skip to content

Commit c3368c6

Browse files
authored
Fix curl command to do a release: use CircleCI API v1 instead (envoyproxy#214)
of v2. It turns out that a lot has changed around how build parameters are handled, and the current build pipeline is not exactly compatible with the v2 API. Signed-off-by: rulex123 <[email protected]>
1 parent 68f0503 commit c3368c6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ To release and publish a new version, do the following:
4545
2. from terminal, curl the CircleCI API as follows
4646

4747
```
48-
curl --request POST \
49-
--url https://circleci.com/api/v2/project/github/envoyproxy/java-control-plane/pipeline \
50-
--header 'Circle-Token: <API token>' \
51-
--header 'content-type: application/json' \
52-
--data '{"branch":"main","parameters":{"RELEASE":"<e.g. 0.1.29>","NEXT":"<e.g. 0.1.30-SNAPSHOT>"}}'
48+
curl -X POST \
49+
-H "Content-Type: application/json" \
50+
-d '{ "build_parameters": { "RELEASE": "<e.g. 0.1.29>", "NEXT": "<e.g. 0.1.30-SNAPSHOT>" } }' \
51+
"https://circleci.com/api/v1.1/project/github/envoyproxy/java-control-plane/tree/main?circle-token=<API token>"
5352
```

0 commit comments

Comments
 (0)