diff --git a/kea_testing.groovy b/kea_testing.groovy index c0f45d7..ad35ec2 100644 --- a/kea_testing.groovy +++ b/kea_testing.groovy @@ -97,9 +97,9 @@ pipeline { if (responseCode != '200') { error("$testName: Returned status code = $responseCode when calling $url") } - testName = "KEA_F004" - url = "mqtt://${HOST_IP}:1883/test" - responseCode = sh(label: testName, script: "sleep 2 ; curl -d 1 $url & OUT=`curl -m 4 -s $url` ; echo $OUT", returnStdout: true) + String testName = "KEA_F004" + String url = "mqtt://${HOST_IP}:1883/test" + String responseCode = sh(label: testName, script: "sleep 2 ; curl -d 1 $url & OUT=`curl -m 4 -s $url` ; echo $OUT", returnStdout: true) if (responseCode != 'test1') { error("$testName: Returned status code = $responseCode when calling $url") }