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

Jenkins ui parameters are not getting rendered , using latest active-choice plugin

      I have set up a jenkins with 2.440.1 version , installed the active-choice plugin with 2.8.1 version

      Created a job which has 6 parameters

      1. hypervisor
      2. location
      3. environment
      4. esx_host
      5. host_to_provision
      6. install_type

      Expected :
      Based on the hypervisor value, below parameters must be rendered with an appropriate values.

      Actual cause : 
      For the 1st time, first 5 values  are rendered but install_type values is not rendered but when i change the values of the hypervisor parameter then all values are rendered but when refreshed the page again only first 5 values are rendered.

      Working on : 
      jenkins version 2.387.2 and actice-choice version 2.6.5

      Error: 

      Updating cascade of parameter [ install_type ] ...
      UnoChoice.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toString')
          at e.getElementValue (UnoChoice.js:1:1615)
          at y (UnoChoice.js:1:7280)
          at g.getReferencedParametersAsText (UnoChoice.js:1:8280)
          at g.<anonymous> (UnoChoice.js:1:8410)
          at g.update (UnoChoice.js:1:3209)
          at UnoChoice.js:1:5818
          at n (UnoChoice.js:1:2170)
          at Object.<anonymous> (UnoChoice.js:1:4919)
          at Object.renderCascadeChoiceParameter (UnoChoice.js:1:3209)
          at build?delay=0sec:227:15
      e.getElementValue @ UnoChoice.js:1
      y @ UnoChoice.js:1
      g.getReferencedParametersAsText @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      n @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ build?delay=0sec:227
      Promise.then (async)
      n @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ build?delay=0sec:227
      Show 12 more frames
      Show less
      UnoChoice.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toString')
          at e.getElementValue (UnoChoice.js:1:1615)
          at y (UnoChoice.js:1:7280)
          at g.getReferencedParametersAsText (UnoChoice.js:1:8280)
          at g.<anonymous> (UnoChoice.js:1:8410)
          at g.update (UnoChoice.js:1:3209)
          at UnoChoice.js:1:5818
          at n (UnoChoice.js:1:2170)
          at Object.<anonymous> (UnoChoice.js:1:4919)
          at Object.renderCascadeChoiceParameter (UnoChoice.js:1:3209)
          at build?delay=0sec:238:15
      e.getElementValue @ UnoChoice.js:1
      y @ UnoChoice.js:1
      g.getReferencedParametersAsText @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      n @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ build?delay=0sec:238
      Promise.then (async)
      n @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ UnoChoice.js:1
      (anonymous) @ build?delay=0sec:238
      Show 12 more frames
      Show less
      UnoChoice.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toString')
          at e.getElementValue (UnoChoice.js:1:1615)
          at y (UnoChoice.js:1:7280)
          at g.getReferencedParametersAsText (UnoChoice.js:1:8280)
          at g.<anonymous> (UnoChoice.js:1:8410)
          at g.update (UnoChoice.js:1:3209)
          at UnoChoice.js:1:5818
          at n (UnoChoice.js:1:2170)
          at Object.<anonymous> (UnoChoice.js:1:4919)
          at Object.renderCascadeChoiceParameter (UnoChoice.js:1:3209)
          at build?delay=0sec:249:15

      log error msg:
      attached

          [JENKINS-72826] Jenkins ui parameters are not getting rendered , using latest active-choice plugin

          Shahbaj added a comment -

          Hi kinow , Any updates ?

          Shahbaj added a comment - Hi kinow , Any updates ?

          None from me, stamboli . If there is urgency on this issue, please contact Cloudbees to hire them for support. I maintain the plug-in on my spare/volunteer time, but you can hire them if you need to fix a job urgently. Alternatively, if you know some Java or JavaScript and you can provide a pull request, that's always easier and faster to review and merge. At the moment I am busy with $work, and have to fix a few issues at Apache Software Foundation, then TAP plug-in, and only then I will have time to work on this plug-in, sorry.

          Bruno P. Kinoshita added a comment - None from me, stamboli . If there is urgency on this issue, please contact Cloudbees to hire them for support. I maintain the plug-in on my spare/volunteer time, but you can hire them if you need to fix a job urgently. Alternatively, if you know some Java or JavaScript and you can provide a pull request, that's always easier and faster to review and merge. At the moment I am busy with $work, and have to fix a few issues at Apache Software Foundation, then TAP plug-in, and only then I will have time to work on this plug-in, sorry.

          Oleg added a comment -

          We have the same issue , do you found some workaround solution ?

          Oleg added a comment - We have the same issue , do you found some workaround solution ?

          Hossted added a comment - - edited

          Greetings!

          We are also a community member experiencing the similar issue.

          We hired professional expert(s) to work on this matter since our business case demanded so.
          We submitted the dedicated issue describing the problem(s) in detail here:
          JENKINS-73935

          We hope that the plugin maintainer(s) and / or author(s) will be able to fix the root cause of this issue in the near future.

          In the meantime, we created a separate repository project which contains a workaround for this issue.

          For more information, you can check it out here (on our GitHub).

          Please read in detail if you are interested.
          Also, we provided a patched plugin bundles containing the fix here (on our GitHub).

          But due to security concerns, please, use with caution.

          If you are interested in using the fix before the official fix from the maintainer(s), it would be preferred that you rebuild it yourself instead of using our pre-built bundle we are distributing.

           

          Best regards,
          Hossted

          Hossted added a comment - - edited Greetings! We are also  a community member  experiencing the similar issue. We hired professional expert(s) to work on this matter since our business case demanded so. We submitted the dedicated issue describing the problem(s) in detail here: JENKINS-73935 We hope that the  plugin maintainer(s) and / or author(s) will be able to fix the root cause of this issue  in the near future. In the meantime, we created a separate repository project which contains a workaround for this issue. For more information, you can check it out  here (on our GitHub) . Please read in detail if you are interested. Also, we provided a patched plugin bundles containing the fix  here (on our GitHub) . But due to security concerns, please, use with caution. If you are interested in using the fix before the official fix from the maintainer(s), it would be preferred that you rebuild it yourself instead of using our pre-built bundle we are distributing.   Best regards, Hossted

            kinow Bruno P. Kinoshita
            stamboli Shahbaj
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: