|
@@ -55,9 +55,9 @@ pipeline {
|
|
|
)]) {
|
|
|
sh """
|
|
|
cd ${params.SERVICE}
|
|
|
- docker build -t ${DOCKER_IMAGE} .
|
|
|
- echo "\${REGISTRY_PASSWORD}" | docker login ${DOCKER_REGISTRY} -u \${REGISTRY_USERNAME} --password-stdin
|
|
|
- docker push ${DOCKER_IMAGE}
|
|
|
+ sudo docker build -t ${DOCKER_IMAGE} .
|
|
|
+ echo "\${REGISTRY_PASSWORD}" | sudo docker login ${DOCKER_REGISTRY} -u \${REGISTRY_USERNAME} --password-stdin
|
|
|
+ sudo docker push ${DOCKER_IMAGE}
|
|
|
"""
|
|
|
}
|
|
|
}
|