How to send coverage information to gitlab mr

#1

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

To push to gitlab the report, we may publish the coverage report artifact that way : https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#artifactsreports

  • 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 !

0 Likes