Created
October 24, 2019 10:11
-
-
Save damiandragowski/9ffb1adc53c5cf8c1ec0128b647c2518 to your computer and use it in GitHub Desktop.
healthcheck for web app with credential by curl, use for jenkins
This file contains hidden or 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
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