adding credentials
This commit is contained in:
parent
22185413a9
commit
3faf5affc1
|
|
@ -28,9 +28,9 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
withCredentials([usernamePassword(credentialsId: "${DOCKERUSRPASS}", usernameVariable: 'REGISTRY_USER', passwordVariable: 'REGISTRY_TOKEN')]) {
|
||||
sh """
|
||||
echo '${REGISTRY_TOKEN}' | docker login ${REGISTRY_URL} --username ${REGISTRY_USER} --password-stdin
|
||||
"""
|
||||
sh '
|
||||
echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_URL" --username ${REGISTRY_USER} --password-stdin
|
||||
'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue