Skip to content

Instantly share code, notes, and snippets.

@StefanHeimberg
Last active April 29, 2018 22:32
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 StefanHeimberg/486f5f171cd162d6ec5a07a9a5f5088d to your computer and use it in GitHub Desktop.
Save StefanHeimberg/486f5f171cd162d6ec5a07a9a5f5088d to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
remoteCall="BAMBOO_URL/api/rest/updateAndBuild.action?buildKey=PLAN_KEY"
echo "Detected last directory that was committed ... triggering $remoteCall"
curl --connect-timeout 10 --max-time 10 --silent --fail $remoteCall > /dev/null
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment