dskzap8756
dskzap8756
2016-10-14 11:33

我无法在Jenkins中配置报告

已采纳

I am configuring a Jenkins job to run PHPUnit after each GitHub commit

I selected Post build action -> Publish Junit test result report

I selected 'Test Report XMLs' as **/results/phpunit.xml

I am getting following error message on applying this setting:

/results/phpunit.xml’ doesn’t match anything: ‘’ exists but not ‘**/results/phpunit.xml’

I tried with /results/phpunit.xml, but still got the same, the results dir exists on my server at /var/lib/jenkins/workspace/results Can anyone please help? Thanks!

Please click this link to show the error image

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douwen3362 douwen3362 5年前

    Try the Test Report XMLs setting without the slash:

    results/phpunit.xml
    

    instead of

    /results/phpunit.xml
    

    It might not be relative to your jenkins folder, but rather sees the first slash as the root directory.

    点赞 评论 复制链接分享