From 337b80f3293fa6beff5186c7c7c3e703ec9b8339 Mon Sep 17 00:00:00 2001 From: ONS-Tom Date: Wed, 10 Jan 2018 14:38:11 +0000 Subject: [PATCH] Fix/ping health route (#28) * Add --insecure flag to Jenkinsfile curl request * Add documentation for new curl request flag --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1986b2f..ca3c913 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}")