Skip to content

[JENKINS-59777] Allow nested docker.withRegistry() blocks #2#177

Open
PhilippHomann wants to merge 1 commit into
jenkinsci:masterfrom
PhilippHomann:reuseDockerConfig
Open

[JENKINS-59777] Allow nested docker.withRegistry() blocks #2#177
PhilippHomann wants to merge 1 commit into
jenkinsci:masterfrom
PhilippHomann:reuseDockerConfig

Conversation

@PhilippHomann

Copy link
Copy Markdown

Another approach to allow nested docker.withRegistry() steps.
When currently nesting withRegistry it results in without losing credentials of the previous one.

This PR only drops the blacklisted properties if the config.json is the one located in the users home directory.
If not the blacklisted properties are kept and the new registry is added.

@PhilippHomann
PhilippHomann requested a review from a team as a code owner October 8, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant