Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

support specifying username and password for private registries in pom #195

Closed
a-buck opened this issue Feb 29, 2016 · 2 comments
Closed

Comments

@a-buck
Copy link

a-buck commented Feb 29, 2016

At the moment you have to specify the username and password in a <server> block within the settings.xml, then reference it with a serverId property under <configuration> in the pom.xml.

We would like to pull an image from a private docker repository which requires authentication. It's not a sensitive username/password, therefore we would like to be able to specify the credentials in the pom instead of relying on users to update their settings.xml:

<configuration>
  <username>my-username</username>
  <password>my-password</password>
  [...]

If you agree with this I would love to have a go at implementing it please.

@aditzel
Copy link

aditzel commented Mar 2, 2017

Are there any plans to support this? This type of feature becomes increasingly useful when integrating builds into a Jenkins pipeline workflow.

@mattnworb
Copy link
Member

#339 will make it so that if your username and password appears in the ~/.docker/config.json, then it will be used transparently by the plugin without needing to put anything in your pom.xml.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants