On Jenkins 2.176.2 and credentials-binding-plugin 1.19, the following pipeline will intermittently hang:
The build log looks like this:
until the build is aborted.
I've seen two independent things that both seem to work around the problem:
- flipping so `withCredentials()` wraps `withEnv([...])` seems to avoid the hang.
- ensuring there's always at least one item in the `withCredentials` list parameter seems to avoid the hang.
We run into this in a pipeline where the parameter to withCredentials varies by projects, and sometimes is an empty list.