1
0
mirror of synced 2024-11-22 04:26:01 +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()
}
environment {
HUB_URL = credentials('docker_hub_url')
HUB_PATH = credentials('docker_hub_path')
}
stages {
stage('Prepare') {
steps {
@ -38,8 +43,6 @@ pipeline {
credentialsId: 'docker-hub-credentials',
usernameVariable: 'HUB_USER',
passwordVariable: 'HUB_PASS'
urlVariable: 'HUB_URL'
pathVariable: 'HUB_PATH'
)]) {
sh 'echo ${HUB_PASS} | docker login -u ${HUB_USER} --password-stdin ${HUB_URL}'
}