美好的一天,
我正在尝试在新的Jenkins实例上设置Multibranch管道,并且在扫描多分支管道日志中遇到此错误:
没有这样的文件:E:\ Continuous Integration \ Jenkins \ jobs \ Enhanced-API \ indexing \ indexing.log
根据jenkins.err.log,我遇到了
WARNING: Caught exception evaluating: h.filterDescriptors(it,attrs.descriptors) in /view/EAPI/job/Enhanced-API/configure. Reason: java.lang.NullPointerException: Descriptor list is null for context 'class org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject' in thread 'Handling GET /view/EAPI/job/Enhanced-API/configure from 10.117.100.110 : RequestHandlerThread[#35] AbstractFolder/configure.jelly FolderLibraries/DescriptorImpl/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
java.lang.NullPointerException: Descriptor list is null for context 'class org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject' in thread 'Handling GET /view/EAPI/job/Enhanced-API/configure from 10.117.100.110 : RequestHandlerThread[#35] AbstractFolder/configure.jelly FolderLibraries/DescriptorImpl/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
at hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
at hudson.Functions.filterDescriptors(Functions.java:1863)
at sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
此Jenkins的版本 2.85 以及以下版本的Git插件:
Git客户端插件 - 2.5.0
Git插件 - 3.6.0
GIT服务器插件 - 1.7
GitHub API插件 - 1.89
GitHub分支源插件 - 2.2.3
GitHub插件 - 1.28.0
我们为什么遇到这个问题?谢谢!
答案 0 :(得分:0)
这可能会有所帮助:https://issues.jenkins-ci.org/browse/JENKINS-39598
不建议使用引起该问题的插件,但是显然,这是一种解决方法(我尚未测试过):
touch $JENKINS_HOME/plugins/multiple-scms.jpi.disabled