Skip to content

Instantly share code, notes, and snippets.

@termie
Created June 5, 2015 19:56
Show Gist options
  • Save termie/5d97ca6bcb5bf2ac1f0e to your computer and use it in GitHub Desktop.
Save termie/5d97ca6bcb5bf2ac1f0e to your computer and use it in GitHub Desktop.
triggering a build on wercker
#!/bin/bash
APP_ID=<from wercker>
API_TOKEN=<from https://app.wercker.com/#profile/tokens>
GIT_BRANCH=master
#URL=https://app.wercker.com/api/project/${APP_ID}/build?token=${TOKEN}
RESULT=`curl --data-urlencode "branch=$GIT_BRANCH" https://app.wercker.com/api/project/${APP_ID}/build\?token\=$API_TOKEN`
echo $RESULT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment