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

Active Choises Parameter - empty 'Classpath entry'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • active-choices-plugin
    • Jenkins ver. 2.23
      Active Choices Plug-in 1.5.2

      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.

       

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

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

              Created:
              Updated:
              Resolved: