This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -44,8 +44,7 @@ pipeline {
|
|||||||
def json = """
|
def json = """
|
||||||
{"username": "${PORTAINER_CREDENTIALS_USR}", "password": "${PORTAINER_CREDENTIALS_PSW}"}
|
{"username": "${PORTAINER_CREDENTIALS_USR}", "password": "${PORTAINER_CREDENTIALS_PSW}"}
|
||||||
"""
|
"""
|
||||||
def jwtResponse = httpRequest
|
def jwtResponse = httpRequest acceptType: 'APPLICATION_JSON',
|
||||||
acceptType: 'APPLICATION_JSON',
|
|
||||||
contentType: 'APPLICATION_JSON',
|
contentType: 'APPLICATION_JSON',
|
||||||
validResponseCodes: '200',
|
validResponseCodes: '200',
|
||||||
httpMode: 'POST',
|
httpMode: 'POST',
|
||||||
@@ -61,8 +60,7 @@ pipeline {
|
|||||||
def json = """
|
def json = """
|
||||||
|
|
||||||
"""
|
"""
|
||||||
def response = httpRequest
|
def response = httpRequest acceptType: 'APPLICATION_JSON',
|
||||||
acceptType: 'APPLICATION_JSON',
|
|
||||||
contentType: 'APPLICATION_JSON',
|
contentType: 'APPLICATION_JSON',
|
||||||
validResponseCodes: '204',
|
validResponseCodes: '204',
|
||||||
httpMode: 'POST',
|
httpMode: 'POST',
|
||||||
@@ -78,8 +76,7 @@ pipeline {
|
|||||||
def json = """
|
def json = """
|
||||||
|
|
||||||
"""
|
"""
|
||||||
def response = httpRequest
|
def response = httpRequest acceptType: 'APPLICATION_JSON',
|
||||||
acceptType: 'APPLICATION_JSON',
|
|
||||||
contentType: 'APPLICATION_JSON',
|
contentType: 'APPLICATION_JSON',
|
||||||
validResponseCodes: '204',
|
validResponseCodes: '204',
|
||||||
httpMode: 'POST',
|
httpMode: 'POST',
|
||||||
|
|||||||
Reference in New Issue
Block a user