Skip to content

Instantly share code, notes, and snippets.


fideloper/ Secret

Created Jul 27, 2019
What would you like to do?
Chipper CI pipeline step to send build trigger
# Send a build trigger depending on the branch
# Docs on available env vars here:
if [[ $CI_COMMIT_BRANCH == 'master' ]]; then
curl -X POST https://my-webhook-url/master/some-token -d branch=$CI_COMMIT_BRANCH -d commit=$CI_COMMIT_SHA
if [[ $CI_COMMIT_BRANCH == 'develop' ]]; then
curl -X POST https://my-webhook-url/develop/some-token -d branch=$CI_COMMIT_BRANCH -d commit=$CI_COMMIT_SHA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.