1
0
mirror of synced 2024-11-25 13:16:02 +03:00

update Jenkinsfile

This commit is contained in:
Alex Lushpai 2018-05-25 16:15:24 +03:00
parent e51e857572
commit 1e6649b403

7
Jenkinsfile vendored
View File

@ -7,6 +7,11 @@ pipeline {
disableConcurrentBuilds() disableConcurrentBuilds()
} }
environment {
HUB_URL = credentials('docker_hub_url')
HUB_PATH = credentials('docker_hub_path')
}
stages { stages {
stage('Prepare') { stage('Prepare') {
steps { steps {
@ -38,8 +43,6 @@ pipeline {
credentialsId: 'docker-hub-credentials', credentialsId: 'docker-hub-credentials',
usernameVariable: 'HUB_USER', usernameVariable: 'HUB_USER',
passwordVariable: 'HUB_PASS' passwordVariable: 'HUB_PASS'
urlVariable: 'HUB_URL'
pathVariable: 'HUB_PATH'
)]) { )]) {
sh 'echo ${HUB_PASS} | docker login -u ${HUB_USER} --password-stdin ${HUB_URL}' sh 'echo ${HUB_PASS} | docker login -u ${HUB_USER} --password-stdin ${HUB_URL}'
} }