jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-46108] withRegistry should support specifying a username/password

Open
#513 2 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 2025-12-07

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.