Browse Source

Polishing.

Extract artifactory credentials into properties file.

See #2541
2.5.x
Mark Paluch 4 years ago
parent
commit
fd39108e97
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 10
      Jenkinsfile
  2. 1
      ci/pipeline.properties

10
Jenkinsfile vendored

@ -30,7 +30,7 @@ pipeline {
} }
options { timeout(time: 30, unit: 'MINUTES') } options { timeout(time: 30, unit: 'MINUTES') }
environment { environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') ARTIFACTORY = credentials("${p['artifactory.credentials']}")
} }
steps { steps {
script { script {
@ -57,7 +57,7 @@ pipeline {
} }
options { timeout(time: 30, unit: 'MINUTES') } options { timeout(time: 30, unit: 'MINUTES') }
environment { environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') ARTIFACTORY = credentials("${p['artifactory.credentials']}")
} }
steps { steps {
script { script {
@ -76,7 +76,7 @@ pipeline {
} }
options { timeout(time: 30, unit: 'MINUTES') } options { timeout(time: 30, unit: 'MINUTES') }
environment { environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') ARTIFACTORY = credentials("${p['artifactory.credentials']}")
} }
steps { steps {
script { script {
@ -104,7 +104,7 @@ pipeline {
options { timeout(time: 20, unit: 'MINUTES') } options { timeout(time: 20, unit: 'MINUTES') }
environment { environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') ARTIFACTORY = credentials("${p['artifactory.credentials']}")
} }
steps { steps {
@ -134,7 +134,7 @@ pipeline {
options { timeout(time: 20, unit: 'MINUTES') } options { timeout(time: 20, unit: 'MINUTES') }
environment { environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') ARTIFACTORY = credentials("${p['artifactory.credentials']}")
} }
steps { steps {

1
ci/pipeline.properties

@ -26,3 +26,4 @@ docker.java.inside.docker=-u root -v /var/run/docker.sock:/var/run/docker.sock -
# Credentials # Credentials
docker.registry= docker.registry=
docker.credentials=hub.docker.com-springbuildmaster docker.credentials=hub.docker.com-springbuildmaster
artifactory.credentials=02bd1690-b54f-4c9f-819d-a77cb7a9822c

Loading…
Cancel
Save