From ae0675db7b92eb704565493e8e533d33d69c828d Mon Sep 17 00:00:00 2001 From: Jan Rabcan Date: Wed, 20 Oct 2021 04:24:55 +0200 Subject: [PATCH] a. --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f18e689..45b4ffb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,8 +44,7 @@ pipeline { def json = """ {"username": "${PORTAINER_CREDENTIALS_USR}", "password": "${PORTAINER_CREDENTIALS_PSW}"} """ - def jwtResponse = httpRequest - acceptType: 'APPLICATION_JSON', + def jwtResponse = httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '200', httpMode: 'POST', @@ -61,8 +60,7 @@ pipeline { def json = """ """ - def response = httpRequest - acceptType: 'APPLICATION_JSON', + def response = httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '204', httpMode: 'POST', @@ -78,8 +76,7 @@ pipeline { def json = """ """ - def response = httpRequest - acceptType: 'APPLICATION_JSON', + def response = httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '204', httpMode: 'POST',