CI/CD: JUnit report from Jenkins?

CI/CD: JUnit report from Jenkins?

The company I am working with is using GitLab SCM with Jenkins for CI (for historical reasons :person_shrugging: ).

I am wondering if it is possible to send unit test reports from a Jenkins job (triggered by GitLab, and visible in GitLab) back to GitLab to display in the pipeline view.

In the documentation, I can only find information about unit test reports with gitlab-ci.yml, but no information to send unit test reports with Jenkins.

Any comment and hint is welcome, even a “is not supported” :slight_smile:

Hi @quatauta welcome to the forum!

This is not supported at this time. There is an issue open to extend the artifacts API for upload.

In theory you could run a job that got the junit file then uploaded it with artifacts:report:junit without re-running the tests. I’ve not validated this idea though :wink:

-James H, GitLab Product Manager, Verify:Pipeline Execution

Dear @jheimbuck_gl , Thank you so much for your feedback! I will look into issue issue 20942 and your idea!

-Daniel