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

JS error on MBPL configuration for GitHub branch source

      1. Create a new multi-branch pipeline
      2. Under "Branch Sources", click "GitHub"
      TypeError: inputTbody.childNodes[4] is undefined
          findNeighboringDynamicInput http://localhost:8080/plugin/github-branch-source/github-scm-source.js:25
          <anonymous> http://localhost:8080/plugin/github-branch-source/github-scm-source.js:30
          applySubtree http://localhost:8080/static/7e7618a8/scripts/behavior.js:116
          applySubtree http://localhost:8080/static/7e7618a8/scripts/behavior.js:111
          applySubtree http://localhost:8080/static/7e7618a8/scripts/behavior.js:93
          <anonymous> http://localhost:8080/adjuncts/7e7618a8/lib/form/hetero-list/hetero-list.js:110    renderOnDemand http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:684
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          onreadystatechange http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2850
          loadScript http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2846
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:701
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          onreadystatechange http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2850
          loadScript http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2846
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:701
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          onreadystatechange http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2850
          loadScript http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2846
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:701
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:706
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          onreadystatechange http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2850
          loadScript http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:2846
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:701
          next http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:723
          sequencer http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:726
          evalInnerHtmlScripts http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:711
          renderOnDemand http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:682
          onSuccess http://localhost:8080/adjuncts/7e7618a8/org/kohsuke/stapler/bind.js:57
          respondToReadyState http://localhost:8080/static/7e7618a8/scripts/prototype.js:1657
          onStateChange http://localhost:8080/static/7e7618a8/scripts/prototype.js:1600
          bind http://localhost:8080/static/7e7618a8/scripts/prototype.js:414
          request http://localhost:8080/static/7e7618a8/scripts/prototype.js:1581
          initialize http://localhost:8080/static/7e7618a8/scripts/prototype.js:1550
          wrap http://localhost:8080/static/7e7618a8/scripts/prototype.js:452
          klass http://localhost:8080/static/7e7618a8/scripts/prototype.js:101
          methodName http://localhost:8080/adjuncts/7e7618a8/org/kohsuke/stapler/bind.js:48
          renderOnDemand http://localhost:8080/static/7e7618a8/scripts/hudson-behavior.js:661
          <anonymous> http://localhost:8080/adjuncts/7e7618a8/lib/form/hetero-list/hetero-list.js:56
          notify http://localhost:8080/static/7e7618a8/scripts/yui/event/event-min.js:7
          fire http://localhost:8080/static/7e7618a8/scripts/yui/event/event-min.js:7
          e http://localhost:8080/static/7e7618a8/scripts/yui/menu/menu-min.js:7 

      Visible impact: It's not possible to add a new entry under "Behaviors", such as "Discover tags".

          [JENKINS-64328] JS error on MBPL configuration for GitHub branch source

          Daniel Beck created issue -
          Tim Jacomb made changes -
          Component/s New: github-branch-source-plugin [ 20858 ]

          Tim Jacomb added a comment -

          Tim Jacomb added a comment - cc bitwiseman dnusbaum
          Tim Jacomb made changes -
          Assignee New: Tim Jacomb [ timja ]
          Tim Jacomb made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Tim Jacomb made changes -
          Remote Link New: This issue links to "github-branch-source-plugin/pull/360 (Web Link)" [ 26352 ]

          Devin Nusbaum added a comment -

          timja Just a heads up, but from what I can tell you still cannot configure behaviors for newly-created GitHub branch sources even after https://github.com/jenkinsci/github-branch-source-plugin/pull/360 (although the console error listed in the Jira ticket is gone). If you reconfigure an existing GitHub branch source, then you can add new behaviors, but if you create a new multibranch project and add a new GitHub branch source, you cannot add behaviors until after you save the branch source. Notably, I see the same behavior for Git branch sources, which suggests that something is wrong in branch-api or maybe scm-api, but I'm not sure.

          Devin Nusbaum added a comment - timja Just a heads up, but from what I can tell you still cannot configure behaviors for newly-created GitHub branch sources even after https://github.com/jenkinsci/github-branch-source-plugin/pull/360 (although the console error listed in the Jira ticket is gone). If you reconfigure an existing GitHub branch source, then you can add new behaviors, but if you create a new multibranch project and add a new GitHub branch source, you cannot add behaviors until after you save the branch source. Notably, I see the same behavior for Git branch sources, which suggests that something is wrong in branch-api or maybe scm-api , but I'm not sure.

          Tim Jacomb added a comment -

          Is that with a minimal plugin set? Last I tested this it did work on that pull request, maybe another plugin is causing the issue

          Tim Jacomb added a comment - Is that with a minimal plugin set? Last I tested this it did work on that pull request, maybe another plugin is causing the issue

          Devin Nusbaum added a comment -

          That is with mvn hpi:run from the current master branch of github-branch-source and no other plugins. The key thing seems to be that it only happens before the branch source is saved. If you reconfigure a source that has been saved, everything works.

          Also to clarify, I think the PR does help, because it fixes the error in the description of the ticket, it's just that something else seems to be wrong as well.

          Devin Nusbaum added a comment - That is with mvn hpi:run from the current master branch of github-branch-source and no other plugins. The key thing seems to be that it only happens before the branch source is saved. If you reconfigure a source that has been saved, everything works. Also to clarify, I think the PR does help, because it fixes the error in the description of the ticket, it's just that something else seems to be wrong as well.

            timja Tim Jacomb
            danielbeck Daniel Beck
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: