Pipeline should show where it was triggered from

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Right now, we support a lot of different ways to trigger pipelines and we have the CI_PIPELINE_SOURCE as a pre-defined variable to allow us to run specific jobs based on the input value of the CI_PIPELINE_SOURCE variable.

However, we do not have the ability to see what triggered a pipeline at the moment. All we get is User triggered pipeline for commit which is not helpful except for determining the permissions of the pipeline. There is #338347 (closed) which is to filter the pipeline view based on the source but that information is hidden from the UI and it's not displayed in a pipeline page at all. All the other parameters that we can use to filter pipelines have their information displayed in the UI accordingly, I'm not sure why the Source is not currently included in any view.

E.g. for https://gitlab.com/aelham/react-frontend/-/pipelines/957241818

All I see is the following: image

Feature request: Show the source of the pipeline in the pipeline page or in the main pipeline UI or both so it's easy to determine where a pipeline was triggered from.

Problem: I had some pipelines that started to run for all my branches, but I was confused where the runs were coming from. Turns out it was a security policy that I had set up that triggered the runs. It was not clear at first glance where the runs were coming from because of the missing information.

Edited by 🤖 GitLab Bot 🤖