Adding commit hook scripts for running phpunit

This commit is contained in:
drigato 2014-01-31 16:34:25 -05:00
parent 6d63b81f76
commit c161b664d5
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/python
#
# ./postCommitBuildTrigger.py http://bamoo.atlassian.com/bamboo/ myBuildName
import sys
import urllib;
baseUrl = sys.argv[1]
buildKey = sys.argv[2]
remoteCall = baseUrl + "/api/rest/updateAndBuild.action?buildKey=" + buildKey
fileHandle = urllib.urlopen(remoteCall)
fileHandle.close()