From d852a28bfa322343dee2024cd0a7f6181cd4b5c1 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 9 Sep 2021 00:46:19 +0300 Subject: [PATCH] Process ID is not quoted in MLTD --- kea_testing.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kea_testing.groovy b/kea_testing.groovy index 014800e..fbc01dd 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -124,7 +124,7 @@ pipeline { if (!responseCode.endsWith('200')) { error("$testName: Returned status code = $responseCode when calling $url") } - processId = responseCode.split(",")[1].split(":")[1].split('"')[1]; + processId = responseCode.split(",")[1].split(":")[1]; url = "$APP_URL/api/v1/mltd/status" responseCode = sh(label: testName, script: "curl -m 10 -sLI -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url -o /dev/null", returnStdout: true) echo responseCode -- 2.2.2