Fix CI pipeline

This commit is contained in:
Jamie Curnow 2018-05-04 00:13:36 +10:00
parent a38da77356
commit 2900a0b9e4

3
Jenkinsfile vendored
View File

@ -54,7 +54,8 @@ node-prune'''
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:latest'
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
withDockerRegistry([credentialsId: 'jc21-dockerhub', url: '']) {
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
sh "docker login -u '${duser}' -p '$dpass'"
sh 'docker push docker.io/jc21/$IMAGE_NAME:latest'
sh 'docker push docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
}