junit.xml: no matching files in phpunit job artifacts

Problem/Motivation

When PHPUnit jobs pass, there is often still an error in the log

Uploading artifacts...
WARNING: junit.xml: no matching files. Ensure that the artifact path is relative to the working directory (/builds/issue/my_module-nnnnnn)

This is not a new fault, I think it has been happening since day 1. When the phpunit test fails, we do not get this error, because a junit.xml file is created.

Proposed resolution

As artifact files have to exist, can we just create an empty junit.xml before executing phpunit?

Remaining tasks

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information