Skip to content

Instantly share code, notes, and snippets.

@smithclay
Created February 7, 2013 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smithclay/4727504 to your computer and use it in GitHub Desktop.
Save smithclay/4727504 to your computer and use it in GitHub Desktop.
Run a Jenkins Build Task from the command line.
#!/usr/bin/env bash
JENKINS_URL=http://jenkins.postapp.com/job
if [ $# -eq 0 ]
then
echo "usage: fd <jenkins build task> [<jenkins build task> ...]"
fi
for var in "$@"
do
echo "Building $var..."
URL=$JENKINS_URL/qa-$var/build?delay=0sec
curl -G $URL
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment