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

Active Choice not working with Scriptler

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: