Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68106

Multi-Branch Pipeline tool installs fails frequently on branches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • core
    • None
    • Jenkins 2.332.1
      Oracle Linux 7.9
      Lots of plugins installed, almost all are the most recent versions available

      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:

      tools {
          maven 'maven-3.8.4'
          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.

       

        1. Working.png
          Working.png
          128 kB
        2. Failing.png
          Failing.png
          161 kB
        3. Triggered.log
          15 kB
        4. Manual.log
          18 kB

            Unassigned Unassigned
            rhpatrick Robert Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: