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

Cannot add additional branch sources in multibranch pipeline after 2.422

    • 2.428, 2.426.1

      Can be tested with a clean installation of 2.422 and only the workflow-multibranch plugin.  Create a multibranch pipeline job, add a branch source "single repository & branch", save, then attempt to add another branch source, and the button gets highlighted but does nothing.

      To rule out plugin dependencies, I performed a clean installation of 2.421 and only the workflow-multibranch plugin, then upgraded to 2.422 without modifying plugins.

      The following warning appears in the log

      2023-10-12 13:12:14.170+0000 [id=13]    WARNING o.k.s.f.adjunct.AdjunctsInPage#findNeeded: No such adjunct found: lib.form.hetero-list.hetero-list
      org.kohsuke.stapler.framework.adjunct.NoSuchAdjunctException: Neither lib.form.hetero-list.hetero-list.css, .js, .html, nor .jelly were found 

          [JENKINS-72170] Cannot add additional branch sources in multibranch pipeline after 2.422

          Mark Waite added a comment - - edited

          I can duplicate the issue. The steps that I took to duplicate the issue included:

          1. Create a plugins.txt file with the most recent release of the workflow-multibranch plugin and its related pluigins
          2. Create a run-jenkins.sh script that downloads Jenkins 2.422 and the plugins defined in plugins.txt
          3. Run the run-jenkins.sh script to download Jenkins 2.422 and the plugins
          4. Complete the setup wizard by creating a user for myself and choosing to install no additional plugins from the setup wizard
          5. Create a multibranch Pipeline and add a branch source (single repository and branch with https://github.com/MarkEWaite/implied-labels-plugin.git as repo URL)
          6. Save the newly created multibranch Pipeline
          7. Edit the multibranch Pipeline and press the "Add source button" , confirm that no action happens and see the console log that reports
            2023-10-12 16:44:08.607+0000 [id=77]    WARNING o.k.s.f.adjunct.AdjunctsInPage#findNeeded: No such adjunct found: lib.form.hetero-list.hetero-list
            org.kohsuke.stapler.framework.adjunct.NoSuchAdjunctException: Neither lib.form.hetero-list.hetero-list.css, .js, .html, nor .jelly were found
            

          There are several alternatives as workarounds, including a delete of all the branch sources and then add multiple new branch sources before pressing the apply button.

          Mark Waite added a comment - - edited I can duplicate the issue. The steps that I took to duplicate the issue included: Create a plugins.txt file with the most recent release of the workflow-multibranch plugin and its related pluigins Create a run-jenkins.sh script that downloads Jenkins 2.422 and the plugins defined in plugins.txt Run the run-jenkins.sh script to download Jenkins 2.422 and the plugins Complete the setup wizard by creating a user for myself and choosing to install no additional plugins from the setup wizard Create a multibranch Pipeline and add a branch source (single repository and branch with https://github.com/MarkEWaite/implied-labels-plugin.git as repo URL) Save the newly created multibranch Pipeline Edit the multibranch Pipeline and press the "Add source button" , confirm that no action happens and see the console log that reports 2023-10-12 16:44:08.607+0000 [id=77] WARNING o.k.s.f.adjunct.AdjunctsInPage#findNeeded: No such adjunct found: lib.form.hetero-list.hetero-list org.kohsuke.stapler.framework.adjunct.NoSuchAdjunctException: Neither lib.form.hetero-list.hetero-list.css, .js, .html, nor .jelly were found There are several alternatives as workarounds, including a delete of all the branch sources and then add multiple new branch sources before pressing the apply button.

          Peter Wiseman added a comment -

          Confirmed working for me now.  Thanks for the quick response to this bug.

          Peter Wiseman added a comment - Confirmed working for me now.  Thanks for the quick response to this bug.

            mawinter69 Markus Winter
            pwiseman Peter Wiseman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: