Skip to content

Instantly share code, notes, and snippets.

@fideloper fideloper/build_trigger.sh Secret
Created Jul 27, 2019

Embed
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: https://docs.chipperci.com/builds/env/
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
fi
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
fi
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.