MultiSCM Plugin causing null pointer exception error

Article ID:360041241191
1 minute readKnowledge base

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'

Resolution

No fix implemented as MultiSCM plugin is deprecated.

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