Issue
NullPointerException after opening project configuration. NullPointerException logged in console when configuring multibranch pipeline.
This is due to lack pipeline support in MultiSCM plugin.
2020-03-02 21:46:47.724+0000 [id=460] WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in /mdh/configure. Reason: java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.Hudson' in thread 'Handling GET /mdh/configure from 10.88.5.121 : qtp1160264930-460 Jenkins/configure.jelly GlobalLibraries/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly' java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.Hudson' in thread 'Handling GET /mdh/configure from 10.88.5.121 : qtp1160264930-460 Jenkins/configure.jelly GlobalLibraries/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
-
CloudBees Jenkins Enterprise
-
CloudBees Jenkins Enterprise - Managed controller
-
CloudBees Jenkins Enterprise - Operations center
Workaround
Disable or uninstall MultiSCM plugin.
If there are plugins declaring optional dependency then use below command to disable the MultiSCM plugin as a bug in UI prevents uninstalling the plugin from the web interface.
touch $JENKINS_HOME/plugins/multiple-scms.jpi.disabled
Some plugins may wrongly declare non optional dependency on MultiSCM making it impossible to disable it. It is advised to contact CloudBees support for further assistance in this case.
If you need similar functionality you can consider workflow-aggregator plugin. Follow this link for more information