jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-46108] withRegistry should support specifying a username/password
- Dominant language
- Java
- Stars
- 527
- Forks
- 422
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
When using the Azure Credentials plugin, I can set up a specific Service Principal credential type which will expose an AZURE_CLIENT_ID and AZURE_CLIENT_SECRET into my Pipeline's environment, which can be used as the username/password for an Azure Container Registry.
Unfortunately, the docker.withRegistry() method only accepts a URI and Username/Password Credential type,
It would be nice to support an overload of withRegistry() which accepts: uri, username, password
---
Originally reported by
rtyler, imported from: withRegistry should support specifying a username/password
Raw content of original issue
When using the Azure Credentials plugin, I can set up a specific Service Principal credential type which will expose an AZURE_CLIENT_ID and AZURE_CLIENT_SECRET into my Pipeline's environment, which can be used as the username/password for an Azure Container Registry.
Unfortunately, the docker.withRegistry() method only accepts a URI and Username/Password Credential type,
It would be nice to support an overload of withRegistry() which accepts: uri, username, password
Contributor guide
Assessment
This issue has not been assessed yet.