Status: Resolved (View Workflow)
Environment:Jenkins core 1.651.1
Credentials Binding Plugin 1.7
Jenkins master running on Windows Server 2008 R2 Standard SP1
--against Oracle JDK 1.8.0_45
Node agents running on various Windows 2008 + 2012 Servers, CentOS 7 servers
--against various Oracle and OpenJDK 1.7 and 1.8 JDKs
First reported here in a comment under
Minimal reproduction script is:
So, passing an empty list of credentials--my concrete use case constructs the list based on upstream factors; some of the times there are no credentials to resolve so the list is empty. The relevant part of the log then winds up like this:
I believe it's because BindingStep.Filter::Filter builds a zero-length pattern in this scenario, which matches like crazy.
The obvious workaround is just to not wrap using withCredentials if the credentials list is empty, so it's not a huge deal. I'm also unsure if this issue should be distinct from JIRA-24805.