Skip to content

Instantly share code, notes, and snippets.

@lukasz-kaniowski
Created June 10, 2013 16:11
Show Gist options
  • Save lukasz-kaniowski/5750007 to your computer and use it in GitHub Desktop.
Save lukasz-kaniowski/5750007 to your computer and use it in GitHub Desktop.
curl for jenkins jobs condition
result=`curl http://localhost:8090/test`
echo "Result is '$result'"
if [[ "$result" == *"false"* ]]; then
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment