Skip to content

Commit 2900a0b

Browse files
committed
Fix CI pipeline
1 parent a38da77 commit 2900a0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ node-prune'''
5454
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:latest'
5555
sh 'docker tag $TEMP_IMAGE_NAME docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
5656

57-
withDockerRegistry([credentialsId: 'jc21-dockerhub', url: '']) {
57+
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
58+
sh "docker login -u '${duser}' -p '$dpass'"
5859
sh 'docker push docker.io/jc21/$IMAGE_NAME:latest'
5960
sh 'docker push docker.io/jc21/$IMAGE_NAME:$TAG_VERSION'
6061
}

0 commit comments

Comments
 (0)