How to send coverage information to gitlab mr

We have android project and we handle mr with gitlab selfhosted.

  • Gitlab supports displaying code coverage report in its mr : Redirecting...
  • In our build pipeline, we produce a jacoco xml report
  • I found a script to convert jacoco to covertura (with a script test)
  • I have the gitlab status step at the end of the workflow

To push to gitlab the report, we may publish the coverage report artifact that way : Job artifacts | GitLab

  • How to sync both pipline together bitrise/gitlab-ci ?
  • Or maybe, how to do my need with another way ?

By googling the question, I identify some possible way:

1/

  • do not use gitlab/bitrise webhook
  • use trigger from gitlab
  • use gitlab step to trigger bitrise
  • ask bitrise deploy the coverage report
  • download report from gitlab-ci and publish it to artefact

PS : it change a lot the way we would admin all our project, Iā€™m really not a fan of this way

2/

  • keep using bitrise webhook
  • observe bitrise pipeline and start a step of waiting until end of bitrise workflow
  • ask bitrise deploy the coverage report
  • at end of bitrise workflow, chain gitlab-ci step
  • download report from gitlab-ci and publish it to artefact

PS : I do not know how to trigger a gitlab-ci step from the webhook trigger
PS : Looping to wait bitrise status is not efficient !

3/ Use gitlab api that I do not know

PS : We can download, list, keep gitlab artifact, but we cannot upload it !

4/ Change bitrise gitlab status to add this feature

Any help is welcome !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.