From 4e12feb649a28507bb7116ee6f85c5294c275e30 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 10 Dec 2021 14:31:50 +0200 Subject: [PATCH] Add cat command --- kea_integration.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kea_integration.groovy b/kea_integration.groovy index 9c792e1..b852ce7 100644 --- a/kea_integration.groovy +++ b/kea_integration.groovy @@ -48,7 +48,7 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw \"`pcap-data/mltd2-unix.json`\" $url -o /dev/null", returnStdout: true) + responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw \"`cat pcap-data/mltd2-unix.json`\" $url -o /dev/null", returnStdout: true) echo responseCode if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") -- 2.2.2