Decorate merge request

I’d like to decorate merge request (add information to the Overview page) as part of pipeline execution. E.g. the same way Sonar does GitLab Integration | SonarQube Docs.

Use case
During a build phase, some custom html reports are generated and I’m adding them to the artifacts. So currently I’m able to find them going to the Pipelines tab, selecting the latest pipeline, finding the correct build, clicking Browse in the “Job artifacts” and navigate to the reports, but I’d like to shorten this process and have the links to the reports inside the Overview page.

Is this possible?

@peter.nosal - Thanks for the post and welcome to the forums!

I’m not clear if you are looking to have this on the project overview or on a merge request overview?

If it is the latter I believe using the expose_as keyword will get you what you’re looking for by putting the HTML files on the main merge request page so they are easier to access.

-James H, GitLab Product Manager, Verify:Testing

Thanks for a quick reply!
I meant Merge Request Overview. I’ll try your suggestion and let you know.

Thanks @jheimbuck_gl , the expose_as keyword is what I needed. Although, first I tried it in a child pipeline and couldn’t see the artifact in the MR. I took me a bit of googling and I found this issue artifacts:expose_as not working with child pipelines (#220998) · Issues · GitLab.org / GitLab · GitLab (artifacts:expose_as not working with child pipelines). The build where the reports are built has to be in a child pipeline, I’m generating the pipeline dynamically. When I put the expose_as in a stage in the main pipeline (not the child pipeline), the reports are not available.
If the reports are generated in one stage (in child pipeline), is there a way to “access” them in another stage (in main pipeline)?

@peter.nosal There’s not a way I know of to do that. Thanks for pointing out that issue I believe it is blocked by another issue the CI team is investigating. I linked this thread into the issue.

-James H, GitLab Product Manager, Verify:Testing

Ok, no problem. Thanks for info and for your time. :slight_smile:

1 Like