-
Notifications
You must be signed in to change notification settings - Fork 574
Bug: NPEx when using serverId #89
Comments
I just ran into this NPE. Its blocking our ability to use this Maven plugin with our Jenkins CI builds. We use Config File Provider Plugin and Credentials Plugin for managing the Maven settings.xml file in our build farm. Those plugins will stitch credentials into a settings.xml at the beginning of a build, but the XML stanzas they stitch into the settings.xml file look like this: <server> No <configuration><email>...</email></configuration> entries are created. Perhaps there should be a way to loosen the check on whether an email needs to be present in the settings.xml file for a docker push operation? |
@aharonha @greglanthier Thanks for the bug report. I believe docker needs the email. The email, password, and username are hashed together and the has is also sent to the server during authentication. Would it help to make the error message more obvious? |
A more obvious error would be useful, sure. In our CI environment when we do a "docker push" we only login with a usename & password. Perhaps that isn't best practice... Regardless, the Jenkins configuration plugins I mentioned don't let you specify additional configuration XML stanzas in the <server .../> elements, and since Jenkins drives our entire CI / CD process I'm trying to find a happy compromise between Maven & Jenkins in this case. Thanks for looking at this so quickly! |
on my POM I have this
under my settings.xml (xpath
//settings/servers/server
) I have this:when running
mvn clean install docker:build
I get this errorsThe text was updated successfully, but these errors were encountered: