Browse Source

Polishing.

Extract artifactory credentials into properties file.

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

4
Jenkinsfile vendored

@ -31,7 +31,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 {
@ -58,7 +58,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

@ -21,3 +21,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