We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38da77 commit 2900a0bCopy full SHA for 2900a0b
Jenkinsfile
@@ -54,7 +54,8 @@ node-prune'''
54
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:latest'
55
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
56
57
- withDockerRegistry([credentialsId: 'jc21-dockerhub', url: '']) {
+ withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
58
+ sh "docker login -u '${duser}' -p '$dpass'"
59
sh 'docker push docker.io/jc21/$IMAGE_NAME:latest'
60
sh 'docker push docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
61
}
0 commit comments