Last active
February 17, 2017 19:18
-
-
Save stewartpark/439270d5aef86f4f50ce4068e953f23f to your computer and use it in GitHub Desktop.
Simple CircleCI Build Trigger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is to trigger another CircleCI build inside a CircleCI build easily | |
# Author: Stewart Park <[email protected]> | |
# | |
# Usage: | |
# curl -L https://goo.gl/qU14Wd | PROJECT=username/repo-name API_TOKEN=create-one-on-circleci-config bash | |
set -e | |
# Install dependencies | |
sudo apt-get install jq | |
curl -o ~/bin/circleci https://raw.githubusercontent.com/rockymadden/circleci-cli/master/src/circleci | |
chmod 755 ~/bin/circleci | |
# Trigger the project | |
circleci init --token $API_TOKEN | |
circleci trigger $PROJECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment