jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-31608] Better support of DockerHub credentials
- Dominant language
- Java
- Stars
- 527
- Forks
- 422
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Today, to define DockerHub credentials, you have to define an empty url in docker.withRegistry('', 'my-dockerhub-credentials').
It supports an empty string '' but not null.
It would be nice to also support null: docker.withRegistry(null, 'my-dockerhub-credentials') and maybe to add a method such as docker.withRegistryCredentials(credentials).
---
Originally reported by
cleclerc, imported from: Better support of DockerHub credentials
jglick
Raw content of original issue
Today, to define DockerHub credentials, you have to define an empty url in docker.withRegistry('', 'my-dockerhub-credentials').
It supports an empty string '' but not null.
It would be nice to also support null: docker.withRegistry(null, 'my-dockerhub-credentials') and maybe to add a method such as docker.withRegistryCredentials(credentials).
Contributor guide
Assessment
This issue has not been assessed yet.