Closed haydenseitz closed 1 year ago
You just want the !! no artifacts was copied !!
to be removed, or do you want the tool to actually do something with the report.junit
file?
Thinking it through, exporting reports aside from dotenv would not do much, eh?
In my case, I was updating jobs to export junit reports, and because it was failing/not exporting in gitlab-ci-local, I thought there was a problem with my config. So, maybe just updating the job log to say that gitlab-ci-local only exports dotenv reports would be helpful.
Not sure I'm completely on-track here, but in a non-local version -- i.e., the original GitLab job -- wouldn't produce a junit artifact either, you need to expose it via the paths
keywords as usual artifacts. The reports keyword -- as far as I remember -- has the effect that the resulting report is shown in the tests
tab of the pipeline.
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior Junit reports are exported at the end of the job.
Actual behavior Junit is not exported. In above example, only the dotenv file is exported
Host information Ubuntu 20.04.4 gitlab-ci-local 4.34.0
Additional context
Job output from above example:
Editor showing only test.env artifact:
When trying to only export a junit report, it returns "no artifacts was copied":
Job output: