zoukankan      html  css  js  c++  java
  • Jenkins无法读取覆盖率报告的解决方法

    报错信息如下:

    log
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    
    coverage-report:
    
    [mkdir] Created dir: D:JKworkspaced9_rm3_engine_dev1.0.0_cudview
    mv3_engineengine_j2eedoccoveragereport
    
    [cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
    
    [cobertura-report] Cobertura: Loaded information on 114 classes.
    
    [cobertura-report] Report time: 913ms
    
    BUILD SUCCESSFUL
    
    Total time: 1 minute 44 seconds
    
    Publishing Cobertura coverage report...
    
    No coverage results were found using the pattern 'view/rmv3_engine/engine_j2ee/doc/coveragereport/coverage.xml' relative to 'D:JKworkspaced9_rm3_engine_dev1.0.0_cudview'.  Did you enter a pattern relative to the correct directory?  Did you generate the XML report(s) for Cobertura?
    
    Build step 'Publish Cobertura Coverage Report' changed build result to FAILURE
    
    Recording test results
    
    Finished: FAILURE
    

    覆盖率报告已经生成,在工作区也可以找到,路径是:’view/rmv3_engine/engine_j2ee/doc/coveragereport/coverage.xml’,但jenkins对于这个路径似乎不认,以前用svn的时候可以找到,改成CC后就找不到了。

    解决方法:job配置里面将覆盖率的路径设置为:/coverage.xml 就可以了。很奇怪的一个问题。

  • 相关阅读:
    uva 1584.Circular Sequence
    成为Java顶尖程序员 ,看这11本书就够了
    java 线程同步 原理 sleep和wait区别
    xargs -r
    java
    事故分析
    各大互联网公司架构演进之路汇总
    char 汉字
    nginx优化之request_time 和upstream_response_time差别
    学习进度05
  • 原文地址:https://www.cnblogs.com/kingzzm/p/3325328.html
Copyright © 2011-2022 走看看