From d6e9cc562bc6b315618bf51accdfc3cd2571625e Mon Sep 17 00:00:00 2001 From: Jan Rabcan Date: Wed, 20 Oct 2021 04:26:57 +0200 Subject: [PATCH] . --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 45b4ffb..4104dda 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,7 @@ pipeline { def json = """ """ - def response = httpRequest acceptType: 'APPLICATION_JSON', + httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '204', httpMode: 'POST', @@ -69,14 +69,13 @@ pipeline { requestBody: json, customHeaders: [["name": "Authorization", "value": "${env.JWTTOKEN}"]], url: "http://192.168.4.8:9000/api/endpoints/26/docker/containers/145772505f27bcdef1fbd807ecbb7b4ccbe6fb86dbb3a2bd0e22951557a15a10/stop" - new groovy.json.JsonSlurper().parseText(jwtResponse.getContent()) } echo "Stopping Container" script { def json = """ """ - def response = httpRequest acceptType: 'APPLICATION_JSON', + httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '204', httpMode: 'POST', @@ -85,7 +84,6 @@ pipeline { requestBody: json, customHeaders: [["name": "Authorization", "value": "${env.JWTTOKEN}"]], url: "http://192.168.4.8:9000/api/endpoints/26/docker/containers/145772505f27bcdef1fbd807ecbb7b4ccbe6fb86dbb3a2bd0e22951557a15a10/start" - new groovy.json.JsonSlurper().parseText(jwtResponse.getContent()) } echo "Starting Container" }