-
Bug
-
Resolution: Incomplete
-
Minor
-
None
-
Jenkins 1.609.1
Steps to reproduce:
- Install matrix-combinations-plugin
- Create a freestyle project
- Check "This build is parameterized" and add "Matrix Combinations Parameter"
- Set a name like "combination"
- Build with Parameters
- No parameters are shown as matrix combinations parameter doesn't work with free style projects.
- Click "Build"
- Jenkins fails with:
WARNING: Error while serving http://localhost:8080/job/freestyle/build java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ... Caused by: java.lang.ClassCastException: net.sf.json.JSONNull cannot be cast to net.sf.json.JSONObject at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:143) at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:169) at hudson.model.AbstractProject.doBuild(AbstractProject.java:1744) at hudson.model.AbstractProject.doBuild(AbstractProject.java:1750) ... 58 more
Workarounds: (one of followings)
- Remove an invalid parameter.
- Add another parameter
What happening inside Jenkins
- No "parameter" are posted to Jenkins, and StaplerRequest::getSubmittedForm().get("parameter") returns JSONNull.
Though this is rather considered as a configuration issue, I want to fix that as I can.