我创建了一个Jenkins管道,使用Cobertura 1.16插件来处理一些报告,在控制台日志中弹出以下错误:
[Cobertura] Publishing Cobertura coverage report...
[Cobertura] Publishing Cobertura coverage results...
[Cobertura] Cobertura coverage report found.
ERROR: ERROR: Failure to paint F:\ws\adp\OpenCover_test\nws\root\component\WK.Health.Enterprise.MultiFieldSearchAPI\Managers\ExistenceCheckManager.cs to /jenkins/jobs/ade/jobs/cibs/jobs/STF/jobs/OpenCover_test/cobertura
java.io.IOException: Failed to deserialize response to UserRequest:hudson.FilePath$Mkdirs@249892a: java.lang.SecurityException: Sending hudson.FilePath$Mkdirs from agent to controller is prohibited.
See https://www.jenkins.io/redirect/security-144 for more details
at hudson.remoting.Channel.call(Channel.java:1009)
at hudson.FilePath.act(FilePath.java:1194)
at hudson.FilePath.act(FilePath.java:1183)
at hudson.FilePath.mkdirs(FilePath.java:1374)
at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:64)
at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:140)
at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:32)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3502)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:119)
at java.base/java.lang.Thread.run(Thread.java:829)
字符串
一旦我进入了内置的链接https://www.jenkins.io/redirect/security-144,我需要在jenkins服务器上选中相应的复选框,我也这么做了。
x1c 0d1x的数据
但错误仍然存在。我必须补充一点,我根本没有重启jenkins服务器。另外,我想知道我是否必须升级Cobertura插件,因为我使用1.16,但我必须在我这样做之前确定,因为我不能在这一点上不正确。
有什么想法吗
提前感谢!
1条答案
按热度按时间kninwzqo1#
我找到解决办法了。Cobertura插件版本低于要求,我将其升级到1. 17,它解决了这个问题。