I have a multi-branch pipeline job that seems to work fine on the main branch. On other branches/PRs, I am seeing very frequent failures (> 90%) that appear to be related to Jenkins tool installations.
In my Jenkinsfile, I have the following:
jdk 'OpenJDK 15.0.2'
Both of these are set up to automatically download and install in the Jenkins Global Tool configuration.
In builds that are working, Blue Ocean shows what I would expect (a single installation of each), see attached. In builds that are failing, Blue Ocean shows that Jenkins is trying to install the tools twice, with the second OpenJDK installation always failing at the same point, see attached. Note that both the successful and failing builds were done on the same branch with zero changes to the code or Jenkins configuration between the runs.
At this point, I have no idea what could be causing this behavior so I am forced to assume that this is a Jenkins bug.