From 9e372b60c87465e2a41e0ce2a81fd0cd54c79676 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 14 Oct 2021 13:09:05 +0300 Subject: [PATCH] Remove -I switch from curl call --- kea_integration.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kea_integration.groovy b/kea_integration.groovy index 91ab245..57e5ce3 100644 --- a/kea_integration.groovy +++ b/kea_integration.groovy @@ -41,7 +41,7 @@ pipeline { } String processId = responseCode.split(",")[1].split(":")[1].split('"')[1]; url = "$APP_URL/api/v1/od/analyze/$processId" - responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -F file=@pcap-data/big.pcap $url -o /dev/null", returnStdout: true) + responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -F file=@pcap-data/big.pcap $url -o /dev/null", returnStdout: true) echo responseCode if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") -- 2.2.2