• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • jenkins: 2.339
      active choice: 2.6.0
      scriptler: 3.4
      OS: RedHat 8.4

      When we have a job with an Active Choices Parameter that uses a scriptler script and we go to "Build with Parameter", the parameter does not populate with anything.

      Jenkins log produces "o.b.u.AbstractScriptableParameter#eval: Error executing script for dynamic parameter java.lang.NullPointerException". Traceback is in the attachment, jenkins.log.

      Running the script manually from scriptler returns the correct value.

      We downgrade to 2.5.7 as a workaround.

        1. jenkins.log
          18 kB
        2. Jenkinsfile
          0.9 kB

          [JENKINS-68066] Active Choice not working with Scriptler

          This is a duplicate of JENKINS-67934, which has been resolved with Active Choices version 2.6.1.

          Michael Tughan added a comment - This is a duplicate of JENKINS-67934 , which has been resolved with Active Choices version 2.6.1.

          gary added a comment -

          Our environment:

          Jenkins: 2.343 and up to 2.347
          Active choice: 2.6.0 to 2.6.1
          Scriptler: 3.3.to 3.5

          Any of the combination above still have the same problem originally reported in this Bug.

          We again had to downgrade Active Choice parameter to 2.5.7 as a workaround

          gary added a comment - Our environment: Jenkins: 2.343 and up to 2.347 Active choice: 2.6.0 to 2.6.1 Scriptler: 3.3.to 3.5 Any of the combination above still have the same problem originally reported in this Bug. We again had to downgrade Active Choice parameter to 2.5.7 as a workaround

          Insure that 'Run in Sandbox' is not checked for parameters using Scriptlets, and that the Scriptlet code has received 'scriptApproval'

          Ioannis Moutsatsos added a comment - Insure that 'Run in Sandbox' is not checked for parameters using Scriptlets, and that the Scriptlet code has received 'scriptApproval'

          Scriptlet security configuration blocks execution. User must setup permission correctly 

          Ioannis Moutsatsos added a comment - Scriptlet security configuration blocks execution. User must setup permission correctly 

            ioannis Ioannis Moutsatsos
            gchen gary
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: