郑小白 发表于 2017-8-3 17:59:29

jenkins执行junit报错,求帮忙

BUILD SUCCESSFUL
Total time: 16 seconds
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did tests run?
For example, E:\JENKINS\workspace\资产管理系统\build.xml is 22 小时 old

Sending e-mails to: 1261688479@qq.com
Finished: FAILURE

Real_小T 发表于 2017-8-4 09:40:19

在“Execute shell script”这个步骤里输入类似:
touch *.xml
来更新时间戳

郑小白 发表于 2017-8-4 11:26:33

Real_小T 发表于 2017-8-4 09:40
在“Execute shell script”这个步骤里输入类似:

来更新时间戳

还是报一样的错

郑小白 发表于 2017-8-4 11:37:06

郑小白 发表于 2017-8-4 11:26
还是报一样的错

在 Execute shell中增加了 touch *.xml


BUILD SUCCESSFUL
Total time: 17 seconds
[资产管理系统] $ sh -xe "D:\Program Files (x86)\Apache Software Foundation\tomcat7_80\temp\hudson8301736615692989189.sh"
FATAL: command execution failed
java.io.IOException: Cannot run program "sh" (in directory "E:\JENKINS\workspace\资产管理系统"): CreateProcess error=2, ?????????
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at hudson.Proc$LocalProc.<init>(Proc.java:245)
        at hudson.Proc$LocalProc.<init>(Proc.java:214)
        at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)
        at hudson.Launcher$ProcStarter.start(Launcher.java:384)
        at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:108)
        at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:65)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
        at hudson.model.Build$BuildExecution.build(Build.java:205)
        at hudson.model.Build$BuildExecution.doRun(Build.java:162)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
        at hudson.model.Run.execute(Run.java:1728)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:404)
Caused by: java.io.IOException: CreateProcess error=2, ?????????
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)
        at java.lang.ProcessImpl.start(ProcessImpl.java:133)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
        ... 15 more
Build step 'Execute shell' marked build as failure
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did tests run?
For example, E:\JENKINS\workspace\资产管理系统\build.xml is 1 day 16 小时 old

Sending e-mails to: 1261688479@qq.com
Finished: FAILURE

ublyj 发表于 2018-3-16 07:28:35

这个可以回,这个真得回!
页: [1]
查看完整版本: jenkins执行junit报错,求帮忙