feature/Feature-1 #4

Merged
jakub merged 39 commits from feature/Feature-1 into master 2021-10-20 15:40:59 +00:00
Showing only changes of commit 0cc40c6b9a - Show all commits

3
Jenkinsfile vendored
View File

@@ -4,6 +4,7 @@ pipeline {
environment {
REGISTRY_CREDENTIALS = credentials('registry-credentials-id')
PORTAINER_CREDENTIALS = credentials('portainer-credentials')
}
stages {
@@ -39,7 +40,7 @@ pipeline {
steps {
script {
def json = """
{"username": "test", "password": "test"}
{"username": "${PORTAINER_CREDENTIALS_USR}", "password": "${PORTAINER_CREDENTIALS_PSW}"}
"""
def jwtResponse = httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', validResponseCodes: '200', httpMode: 'POST', ignoreSslErrors: true, consoleLogResponseBody: true, requestBody: json, url: "https://portainer.<yourdomain>.com/api/auth"
def jwtObject = new groovy.json.JsonSlurper().parseText(jwtResponse.getContent())