Skip to content

Commit

Permalink
Fix/ping health route (#28)
Browse files Browse the repository at this point in the history
* Add --insecure flag to Jenkinsfile curl request

* Add documentation for new curl request flag
  • Loading branch information
ONS-Tom authored and ONS-Anthony committed Jan 10, 2018
1 parent 7584e18 commit 337b80f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ pipeline {
script {
colourText("info","Checking deployed app health...")
colourText("info","Pinging ${env.APP_URL}/api/health...")
// We use --insecure to ignore certificate issues
APP_STATUS = sh (
script: "curl -sL -w '%{http_code}' '${env.APP_URL}/api/health' -o /dev/null",
script: "curl --insecure -sL -w '%{http_code}' '${env.APP_URL}/api/health' -o /dev/null",
returnStdout: true
).trim()
colourText("info", "APP_STATUS: ${APP_STATUS}")
Expand Down

0 comments on commit 337b80f

Please sign in to comment.