Jib-Maven-plugin with Jenkins scripted pipeline: how to log in to private docker registry?
问题 Regarding this problem, I updated my JHipster-Application with scripted Jenkins pipeline and have now in Jenkinsfile (partly following these hints): [...] def dockerImage withEnv(["DOCKER_CREDS=credentials('myregistry-login')"]) { stage('publish docker') { sh "./mvnw -X -ntp jib:build" } } with Jenkins global credentials myregistry-login saved in my Jenkins-Server to my own docker registry v2 docker-container https://myregistry.mydomain.com (domain changed for security reasons). I can