Line | |
---|
1 | #!/usr/bin/env bash |
---|
2 | |
---|
3 | set -euo pipefail |
---|
4 | |
---|
5 | # Get your API token here: |
---|
6 | # https://app.circleci.com/settings/user/tokens |
---|
7 | API_TOKEN=$1 |
---|
8 | shift |
---|
9 | |
---|
10 | # Name the branch you want to trigger the build for |
---|
11 | BRANCH=$1 |
---|
12 | shift |
---|
13 | |
---|
14 | curl \ |
---|
15 | --verbose \ |
---|
16 | --request POST \ |
---|
17 | --url https://circleci.com/api/v2/project/gh/tahoe-lafs/tahoe-lafs/pipeline \ |
---|
18 | --header "Circle-Token: $API_TOKEN" \ |
---|
19 | --header "content-type: application/json" \ |
---|
20 | --data '{"branch":"'"$BRANCH"'","parameters":{"build-images":true,"run-tests":false}}' |
---|
Note: See
TracBrowser
for help on using the repository browser.