Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save damiandragowski/9ffb1adc53c5cf8c1ec0128b647c2518 to your computer and use it in GitHub Desktop.
Save damiandragowski/9ffb1adc53c5cf8c1ec0128b647c2518 to your computer and use it in GitHub Desktop.
healthcheck for web app with credential by curl, use for jenkins
bash -c 'while [[ "$(curl -o /dev/null -s -u jprabucki: -w ''%{http_code}'' http://localhost:8080/cp-css/start.html)" != "200" ]]; do echo ''server returned ''; curl -s -u jprabucki: -w ''%{http_code}'' http://localhost:8080/cp-css/start.html; sleep 2; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment