Commit 6ab7eb8adbe524ecbdb041ffc771ffc0e8813885

Authored by George Vlahavas
1 parent 88b814847c

Reuse variable

Showing 1 changed file with 1 additions and 1 deletions

kea_testing.groovy View file @ 6ab7eb8
... ... @@ -124,7 +124,7 @@
124 124 if (!responseCode.endsWith('200')) {
125 125 error("$testName: Returned status code = $responseCode when calling $url")
126 126 }
127   - String processId = responseCode.split(",")[1].split(":")[1].split('"')[1];
  127 + processId = responseCode.split(",")[1].split(":")[1].split('"')[1];
128 128 url = "$APP_URL/api/v1/mltd/status"
129 129 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)
130 130 echo responseCode