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

Unable to select a branch source when creating new multi-branch item.

    XMLWordPrintable

Details

    • branch-api 2.6.3, cloudbees-folder 6.15

    Description

      Clicking on a source type on a new item doesn't display the SCM form.

      After clicking the GitHub (or other source types) the dropdown menu closes and the form is not displayed.

      Expected: Click on GitHub in the Branch Sources dropdown menu and the GitHub form pops up.

       

      See attachment.

      Attachments

        1. image-2020-10-30-07-02-43-834.png
          image-2020-10-30-07-02-43-834.png
          48 kB
        2. Jenkins-Ticket.gif
          Jenkins-Ticket.gif
          309 kB
        3. screenshot-1.png
          screenshot-1.png
          58 kB
        4. screenshot-2.png
          screenshot-2.png
          4 kB
        5. selectSource.png
          selectSource.png
          14 kB

        Issue Links

          Activity

            If raising the baseline is acceptable I'd say go for it. What's the data-hack for, btw?

            fqueiruga Félix Queiruga Balado added a comment - If raising the baseline is acceptable I'd say go for it. What's the data-hack for, btw?
            timja Tim Jacomb added a comment -

            Just adding an attribute, making sure the jelly was getting reloaded

            timja Tim Jacomb added a comment - Just adding an attribute, making sure the jelly was getting reloaded

            Ok,makes sense

            fqueiruga Félix Queiruga Balado added a comment - Ok,makes sense
            dnusbaum Devin Nusbaum added a comment -

            Fixes for this issue have been released in Branch API plugin 2.6.3 and CloudBees Folder plugin 6.15.

            dnusbaum Devin Nusbaum added a comment - Fixes for this issue have been released in Branch API plugin 2.6.3 and CloudBees Folder plugin 6.15.
            barel_elbaz Barel Elbaz added a comment - - edited

            A workaround that's worth a mention here, If you face with it and you need to set Branch Source urgently you can:

            1. Login to Jenkins via ssh
            2. Modify ```JENKINS_HOME/jobs/<job_name>/config.xml``` - Just copy & modify from different job with working & configured branch source

            Sample config:

            ```

                <sources class="jenkins.branch.MultiBranchProject$BranchSourceList">
                    <data>
                        <jenkins.branch.BranchSource>
                            <source class="jenkins.plugins.git.GitSCMSource">
                                <id>1100</id>
                                <remote><---YOUR REPO GOES HERE Ex:https://github.com/---></remote>
                                <credentialsId>YOUR_CREDENTIALS</credentialsId>
                                <includes>*</includes>
                                <excludes/>
                                <ignoreOnPushNotifications>false</ignoreOnPushNotifications>
                            </source>
                            <strategy class="jenkins.branch.DefaultBranchPropertyStrategy">
                                <properties class="empty-list"/>
                            </strategy>
                        </jenkins.branch.BranchSource>
                    </data>
                    <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>
                </sources>

            ```

            barel_elbaz Barel Elbaz added a comment - - edited A workaround that's worth a mention here, If you face with it and you need to set Branch Source urgently you can: Login to Jenkins via ssh Modify ```JENKINS_HOME/jobs/<job_name>/config.xml``` - Just copy & modify from different job with working & configured branch source Sample config: ```     <sources class="jenkins.branch.MultiBranchProject$BranchSourceList">         <data>             <jenkins.branch.BranchSource>                 <source class="jenkins.plugins.git.GitSCMSource">                     <id>1100</id>                     <remote> <---YOUR REPO GOES HERE Ex: https://github.com/--- > </remote>                     <credentialsId> YOUR_CREDENTIALS </credentialsId>                     <includes>*</includes>                     <excludes/>                     <ignoreOnPushNotifications>false</ignoreOnPushNotifications>                 </source>                 <strategy class="jenkins.branch.DefaultBranchPropertyStrategy">                     <properties class="empty-list"/>                 </strategy>             </jenkins.branch.BranchSource>         </data>         <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/>     </sources> ```

            People

              timja Tim Jacomb
              wgillaspy William Gillaspy
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: