Charles PHAM Charles PHAM - 1 month ago 10
PHP Question

I am not able to configure reports in 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

Answer

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.

Comments