51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 6811|回复: 4

jenkins执行junit报错,求帮忙

[复制链接]
  • TA的每日心情
    开心
    2017-9-1 09:35
  • 签到天数: 29 天

    连续签到: 1 天

    [LV.4]测试营长

    发表于 2017-8-3 17:59:29 | 显示全部楼层 |阅读模式
    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
    回复

    使用道具 举报

  • TA的每日心情
    郁闷
    2018-1-22 08:48
  • 签到天数: 193 天

    连续签到: 1 天

    [LV.7]测试师长

    发表于 2017-8-4 09:40:19 | 显示全部楼层
    在“Execute shell script”这个步骤里输入类似:
    1. touch *.xml
    复制代码

    来更新时间戳

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 积极回复获得测试积点10 赶快去商城换取奖.

    查看全部评分

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2017-9-1 09:35
  • 签到天数: 29 天

    连续签到: 1 天

    [LV.4]测试营长

     楼主| 发表于 2017-8-4 11:26:33 | 显示全部楼层
    Real_小T 发表于 2017-8-4 09:40
    在“Execute shell script”这个步骤里输入类似:

    来更新时间戳

    还是报一样的错
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2017-9-1 09:35
  • 签到天数: 29 天

    连续签到: 1 天

    [LV.4]测试营长

     楼主| 发表于 2017-8-4 11:37:06 | 显示全部楼层

    在 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
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    发表于 2018-3-16 07:28:35 | 显示全部楼层
    这个可以回,这个真得回!
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-3-29 13:58 , Processed in 0.075883 second(s), 31 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表