From 61c83ce50d6d37aacf1be2a0eae9ac71419c32d2 Mon Sep 17 00:00:00 2001 From: Jan Rabcan Date: Wed, 20 Oct 2021 04:36:19 +0200 Subject: [PATCH] just restart. --- Jenkinsfile | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4042481..97be086 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -68,24 +68,9 @@ pipeline { consoleLogResponseBody: true, requestBody: json, customHeaders: [["name": "Authorization", "value": "${env.JWTTOKEN}"]], - url: "http://192.168.4.8:9000/api/endpoints/26/docker/containers/145772505f27bcdef1fbd807ecbb7b4ccbe6fb86dbb3a2bd0e22951557a15a10/stop" + url: "http://192.168.4.8:9000/api/endpoints/26/docker/containers/145772505f27bcdef1fbd807ecbb7b4ccbe6fb86dbb3a2bd0e22951557a15a10/restart" } - echo "Stopping Container" - script { - def json = """ - {} - """ - httpRequest acceptType: 'APPLICATION_JSON', - contentType: 'APPLICATION_JSON', - validResponseCodes: '204', - httpMode: 'POST', - ignoreSslErrors: true, - consoleLogResponseBody: true, - requestBody: json, - customHeaders: [["name": "Authorization", "value": "${env.JWTTOKEN}"]], - url: "http://192.168.4.8:9000/api/endpoints/26/docker/containers/145772505f27bcdef1fbd807ecbb7b4ccbe6fb86dbb3a2bd0e22951557a15a10/start" - } - echo "Starting Container" + echo "Restarting Container" } } }