Created
March 8, 2018 08:00
-
-
Save derinbay/1f5b591d03c626f9b6e42d4c529888c3 to your computer and use it in GitHub Desktop.
deployment check for jenkins
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
#!/usr/bin/bash | |
CURL='/usr/bin/curl' | |
CURLARGS="-g" | |
URL="https://taylan:[email protected]/api/xml?tree=jobs[name,color]&xpath=/hudson/job[ends-with(color/text(),\"_anime\")]&wrapper=jobs" | |
raw=$($CURL $CURLARGS $URL) | |
echo $raw | |
if [[ $raw = *"QA"* ]] && [[ $raw = *"Release"* ]]; then | |
echo "\n--------------------------QA RELEASE JOB IS WORKING!--------------------------\n" | |
echo "Please trigger the job again after the release job is complete" | |
exit -1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment