Active Choises Parameter - empty 'Classpath entry'

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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. droppedClasspath.png
          droppedClasspath.png
          2 kB
        2. emptyClasspath.png
          emptyClasspath.png
          7 kB
        3. error.png
          error.png
          6 kB

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Robert Koncier
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: