changed how push is invoked

This commit is contained in:
TomPGrid 2025-02-28 13:09:48 +01:00
parent d1848d7c04
commit f61ab0a514

6
Jenkinsfile vendored
View file

@ -42,9 +42,9 @@ pipeline {
def docker_image=docker.build("mr:8084/spring-petclinic:$GIT_COMMIT")
sh 'docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS" mr:8084'
docker_image.push()
sh 'docker push mr:8084/spring-petclinic:$GIT_COMMIT'
docker.withRegistry('mr:8084') {
docker_image.push()
}
}
}
}