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

Active Choises Parameter - empty 'Classpath entry'

    Details

    • Similar Issues:

      Description

      I have few job in my Jenkins using Active Choices Parameter. After I open configuration of the job, Active Choices Parameter has active 'Classpath entry' which is empty by default. I use parameter with Groovy Script but I don't use any external libraries then I don't need to setup 'Classpath entry'.

      If I try to Save the job, Jenkins returns error:

       javax.servlet.ServletException: java.lang.Error: Failed to instantiate class org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry from {"path":""} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at

      There is work around how to save configuration.

      Navigate to section where ‘Active Choices Parameter’ is used and remove ‘Additional Classpath- Classpath entry’ and then it is possible save configuration without error.

      Workaround is not difficult but it is annoying drop 'Classpath entry' everytime the configuration is opened because again and again Active Choices Parameter shows empty Classpath Entry.

       

        Attachments

        1. droppedClasspath.png
          droppedClasspath.png
          2 kB
        2. emptyClasspath.png
          emptyClasspath.png
          7 kB
        3. error.png
          error.png
          6 kB

          Issue Links

            Activity

            Hide
            fchuong Frédéric Chuong added a comment -

            Likely related to JENKINS-37599

            Show
            fchuong Frédéric Chuong added a comment - Likely related to JENKINS-37599
            Show
            gverdoliva Giuseppe Verdoliva added a comment - Fix this issue: https://github.com/jenkinsci/script-security-plugin/pull/208

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                koncier Robert Koncier
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: