Last active
August 29, 2015 13:57
-
-
Save craigtaub/9810897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B | |
| | |
T/T | |
| ?SHA | |
D | |
D - Use SHA | |
1= | |
B | |
B: | |
bash: | |
SHA = git rev-parse HEAD | |
curl T/T ?buildWithParameters?token=biscuit&$SHA | |
=== | |
#!/bin/bash | |
gem install bundler | |
bundle install | |
SHA=`git rev-parse HEAD` | |
curl -u http://192.168.1.110:8080/job/TIP%20HTML/buildWithParameters?token=cookies&sha=$SHA | |
curl -u http://192.168.1.110:8080/job/TIP%20Flash/buildWithParameters?token=cookies&sha=$SHA | |
==== | |
build | |
1 | |
#!/bin/bash | |
gem install bundler | |
bundle install | |
SHA=`git rev-parse HEAD` | |
set 1 & 2 = true | |
2. | |
curl -u http://192.168.1.110:8080/job/TIP%20HTML/buildWithParameters?token=cookies&sha=$SHA | |
var aPassed, aResult; | |
while [ aResult == "false" ] | |
do | |
curl http://192.168.1.110:8080/job/TIP%20HTML/lastBuild/api/json | |
if result = FAILED OR PASSES | |
aResult = true | |
if result = PASS | |
aPassed = true | |
if result = FAIL | |
aPassed = false | |
else | |
sleep 2 | |
done | |
3. | |
Same for HTML Flash | |
bPassed, bResult | |
4. | |
if aPassed && bPassed | |
curl -u http://192.168.1.110:8080/job/TIP%20Deploy/buildWithParameters?token=cookies&sha=$SHA | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment