2

再会,

我正在尝试在我们的新 Jenkins 实例上设置 Multibranch 管道,但在Scan Multibranch Pipeline Log中遇到此错误:

没有这样的文件: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

关于我们为什么遇到这个问题的任何想法?谢谢!

4

1 回答 1

0

这可能会有所帮助:https ://issues.jenkins-ci.org/browse/JENKINS-39598

导致它的插件已被弃用,但显然是一种解决方法(我没有测试过):

touch $JENKINS_HOME/plugins/multiple-scms.jpi.disabled
于 2019-09-18T10:28:17.870 回答