-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
None
Getting an error while running parameterized project job through Jenkins
Error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
at GeneratorMain.main(GeneratorMain.java:21)
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 6 more
I'm not able to duplicate the issue in my configuration. I'm running Jenkins 2.440.1 with latest plugins as described in my plugins.txt file. I have a parmeterized job that I'm able to run with the command:
java -jar jenkins-cli.jar -auth $USER:$TOKEN -s http://localhost:8080 build -f -p BRANCH_TO_BUILD=1.4.x -v /Bugs-Individual/Bugs-20-000-to-29-999/JENKINS-21980-polling-parameterized
Are you using the most recent version of the Jenkins command line jar file? You can download it from the /cli URL of your Jenkins controller.
Are the plugins installed on your system the most recent releases? If not, is the problem resolved when you update to the most recent releases of the plugins?
Please provide the detailed report of your Jenkins version and the installed plugins that is generated when you run the reporting script in the Jenkins script console from "Manage Jenkins".