From 1504b1017421047f9d399fa41f8f5c21c4baf601 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 9 Sep 2021 00:38:21 +0300 Subject: [PATCH] Add echo --- kea_testing.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/kea_testing.groovy b/kea_testing.groovy index 4327fa6..e668b54 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -91,6 +91,7 @@ pipeline { testName = "KEA_F009" url = "$APP_URL/api/v1/od/start" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url", returnStdout: true) + echo responseCode if (!responseCode.endsWith('200')) { error("$testName: Returned status code = $responseCode when calling $url") } -- 2.2.2