change way to pass credentials
parent
11410146b2
commit
641c7cc668
|
@ -27,7 +27,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo 'Pushing....'
|
echo 'Pushing....'
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
|
docker.withRegistry('https://index.docker.io/v1/', 'docker-hub-credentials' ) {
|
||||||
dir('ogWebconsole') {
|
dir('ogWebconsole') {
|
||||||
docker.image("${DOCKER_REPO}/${DOCKER_IMAGE_NAME}:${BRANCH_NAME}-${DOCKER_TAG}").push()
|
docker.image("${DOCKER_REPO}/${DOCKER_IMAGE_NAME}:${BRANCH_NAME}-${DOCKER_TAG}").push()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue