我收到错误,因为它无法初始化 ANT 位置,尽管它是Maven项目。
詹金斯的工作。
输出可以在下面找到:
[htmlpublisher]存档HTML报告... [htmlpublisher]存档于 PROJECT级别 C:\詹金斯\工作空间\水豚-STAGE-回归-按需\目标\仪表板报告 至 /home/scmbuildmaster/.jenkins/jobs/Capybaras-STAGE-Regression-OnDemand/htmlreports/Dashboard_Full_Report_with_Screenshot致命:HTML Publisher失败java.io.IOException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError:无法初始化类 org.apache.tools.ant.Location at hudson.FilePath.copyRecursiveTo(FilePath.java:2213)at hudson.FilePath.copyRecursiveTo(FilePath.java:2101)at hudson.FilePath.copyRecursiveTo(FilePath.java:2084)at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:213)at hudson.tasks.BuildStepMonitor $ 1.perform(BuildStepMonitor.java:20)at at hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:770) 在 hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) 在hudson.model.Build $ BuildExecution.post2(Build.java:183)at at hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:683) 在hudson.model.Run.execute(Run.java:1784)at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at at hudson.model.ResourceController.execute(ResourceController.java:89) 在hudson.model.Executor.run(Executor.java:240)引起: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError:无法初始化类 org.apache.tools.ant.Location at hudson.remoting.Channel $ 3.adapt(Channel.java:784)at hudson.remoting.Channel $ 3.adapt(Channel.java:779)at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)at hudson.FilePath.copyRecursiveTo(FilePath.java:2211)...还有12个 引起:java.lang.NoClassDefFoundError:无法初始化类 org.apache.tools.ant.Location at org.apache.tools.ant.ProjectComponent。(ProjectComponent.java:43) 在org.apache.tools.ant.types.DataType。(DataType.java:40)at org.apache.tools.ant.types.AbstractFileSet。(AbstractFileSet.java:82) 在org.apache.tools.ant.types.FileSet。(FileSet.java:36)at hudson.Util.createFileSet(Util.java:1077)at hudson.util.DirScanner $ Glob.scan(DirScanner.java:124)at at hudson.FilePath.writeToTar(FilePath.java:2249)at hudson.FilePath.access $ 2100(FilePath.java:191)at hudson.FilePath $ 45.invoke(FilePath.java:2190)at hudson.FilePath $ 45.invoke(FilePath.java:2186)at hudson.FilePath $ FileCallableWrapper.call(FilePath.java:2665)at hudson.remoting.UserRequest.perform(UserRequest.java:121)at hudson.remoting.UserRequest.perform(UserRequest.java:49)at hudson.remoting.Request $ 2.run(Request.java:324)at hudson.remoting.InterceptingExecutorService $ 1.call(InterceptingExecutorService.java:68) 在java.util.concurrent.FutureTask.run(未知来源)at java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)at hudson.remoting.Engine $ 1 $ 1.run(Engine.java:63)at java.lang.Thread.run(未知来源)......远程调用 QA-Automation-Node(Native方法)at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) 在hudson.remoting.UserResponse.retrieve(UserRequest.java:221)at at hudson.remoting.Channel $ 3.adapt(Channel.java:782)... 15更多Build 步骤'发布HTML报告'将更改的构建结果更改为FAILURE
答案 0 :(得分:0)
按以下顺序尝试以下操作: