From 7ebc5964e2ee10284e54a903b90f126cd148e8df Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 9 Sep 2021 00:40:38 +0300 Subject: [PATCH] Don't fetch only headers --- kea_testing.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kea_testing.groovy b/kea_testing.groovy index e668b54..61e3be4 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -90,7 +90,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) + responseCode = sh(label: testName, script: "curl -m 10 -sL -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