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

Configuration Empty droplist when adding workspace cleanup include/exclude patterns

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • ws-cleanup-plugin
    • None
    • Jenkins 2.52
      Workspace Cleanup Plugin 0.32
      Chrome 57.0.2987.110 (64-bit) on Windows 10

      Recently while trying to add new jobs, I found that I cannot add include/exclude patterns to
      the workspace cleanup step. The dropdown select box is empty, where it used to have
      INCLUDE/EXCLUDE options.

      For existing jobs, existing pattern entries continue to work, but one cannot add new entries,
      as shown in the attached screenshot.

      There are also 4 javascript errors in the page (domain name obfuscated):

      select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined
       at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])
       at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]
       at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])
       at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])
       at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]
       at Array.forEach (native)
       at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]
       at Array.forEach (native)
       at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]
       at Array.forEach (native)
       select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined
       at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])
       at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]
       at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])
       at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])
       at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]
       at Array.forEach (native)
       at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]
       at Array.forEach (native)
       at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]
       at Array.forEach (native)
       null Failed to load resource: the server responded with a status of 404 (Not Found)
       hudson-behavior.js:2952 Uncaught TypeError: status.firstChild.setAttribute is not a function
       at config.onFailure (select.js:43)
       at klass.respondToReadyState (prototype.js:1657)
       at klass.onStateChange (prototype.js:1600)
       at XMLHttpRequest.<anonymous> (prototype.js:414)
      

          [JENKINS-43179] Configuration Empty droplist when adding workspace cleanup include/exclude patterns

          Chen-Yu Tsai created issue -
          John Mellor made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Oliver Gondža made changes -
          Description Original: Recently while trying to add new jobs, I found that I cannot add include/exclude patterns to
           the workspace cleanup step. The dropdown select box is empty, where it used to have
           INCLUDE/EXCLUDE options.

          For existing jobs, existing pattern entries continue to work, but one cannot add new entries,
           as shown in the attached screenshot.

          There are also 4 javascript errors in the page (domain name obfuscated):

          {{select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined}}
          {{ at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])}}
          {{ at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]}}
          {{ at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])}}
          {{ at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])}}
          {{ at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]}}
          {{ at Array.forEach (native)}}
          {{ at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]}}
          {{ at Array.forEach (native)}}
          {{ at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]}}
          {{ at Array.forEach (native)}}
          {{ select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined}}
          {{ at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])}}
          {{ at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]}}
          {{ at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])}}
          {{ at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])}}
          {{ at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]}}
          {{ at Array.forEach (native)}}
          {{ at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]}}
          {{ at Array.forEach (native)}}
          {{ at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]}}
          {{ at Array.forEach (native)}}
          {{ null Failed to load resource: the server responded with a status of 404 (Not Found)}}
          {{ hudson-behavior.js:2952 Uncaught TypeError: status.firstChild.setAttribute is not a function}}
          {{ at config.onFailure (select.js:43)}}
          {{ at klass.respondToReadyState (prototype.js:1657)}}
          {{ at klass.onStateChange (prototype.js:1600)}}
          {{ at XMLHttpRequest.<anonymous> (prototype.js:414)}}
          New: Recently while trying to add new jobs, I found that I cannot add include/exclude patterns to
           the workspace cleanup step. The dropdown select box is empty, where it used to have
           INCLUDE/EXCLUDE options.

          For existing jobs, existing pattern entries continue to work, but one cannot add new entries,
           as shown in the attached screenshot.

          There are also 4 javascript errors in the page (domain name obfuscated):

          {noformat}
          select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined
           at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])
           at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]
           at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])
           at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])
           at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]
           at Array.forEach (native)
           at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]
           at Array.forEach (native)
           at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]
           at Array.forEach (native)
           select.js:8 Uncaught TypeError: Cannot read property 'firstChild' of undefined
           at updateListBox ([https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:8:67])
           at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:79:13]
           at h ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1294:9])
           at refillOnChange ([https://ci.xxx.xxx/static/e62d70f0/scripts/hudson-behavior.js:1309:5])
           at [https://ci.xxx.xxx/adjuncts/e62d70f0/lib/form/select/select.js:77:9]
           at Array.forEach (native)
           at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:111:30]
           at Array.forEach (native)
           at [https://ci.xxx.xxx/static/e62d70f0/scripts/behavior.js:107:27]
           at Array.forEach (native)
           null Failed to load resource: the server responded with a status of 404 (Not Found)
           hudson-behavior.js:2952 Uncaught TypeError: status.firstChild.setAttribute is not a function
           at config.onFailure (select.js:43)
           at klass.respondToReadyState (prototype.js:1657)
           at klass.onStateChange (prototype.js:1600)
           at XMLHttpRequest.<anonymous> (prototype.js:414)
          {noformat}
          Oliver Gondža made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oliver Gondža made changes -
          Remote Link New: This issue links to "PR #34 (Web Link)" [ 16225 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Oliver Gondža made changes -
          Remote Link New: This issue links to "Page (Jenkins Wiki)" [ 17629 ]

            olivergondza Oliver Gondža
            wens Chen-Yu Tsai
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: