Moved commit hook scripts to dev_tools directory

This commit is contained in:
drigato 2014-01-31 16:42:53 -05:00
parent c161b664d5
commit ba84e609e7
3 changed files with 0 additions and 1 deletions

View file

@ -0,0 +1,25 @@
#!/bin/bash
# the base url of the bamboo server
baseurl="$1/updateAndBuild.action?buildKey="
#
# Use the REST API to trigger a build
#
# Moves to the 2nd param (first is URL)
shift
# Loop for each build key
while (( "$#" )); do
#
# Invoke the trigger
#
remoteCall=$baseurl$1
echo "Detected last directory that was committed ... triggering $remoteCall"
/usr/bin/wget --timeout=10 -t1 $remoteCall -O /dev/null
shift
done
exit 0