adding docker registry paassword
This commit is contained in:
parent
e77efc5297
commit
544b077769
|
|
@ -47,8 +47,10 @@ spec:
|
|||
|
||||
stage('Login to Docker Registry') {
|
||||
steps {
|
||||
container('docker') {
|
||||
withCredentials([usernamePassword(credentialsId: 'DOCKERUSRPASS', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
|
||||
container('docker'){
|
||||
withCredentials([usernamePassword(credentialsId: "08063d26-0005-4942-9b87-9d819a13b973",
|
||||
usernameVariable: 'DOCKER_USER',
|
||||
passwordVariable: 'DOCKER_PASS')]) {
|
||||
sh "docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} ${REGISTRY_URL}"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue