P
In my opinion, using $ApplicationName is not possible, at least for Gitlab
Indeed from GitLab ref, we read :
The URL a badge points to, as well as the image URL, can contain placeholders which will be evaluated when displaying the badge.
The following placeholders are available:
* %{project_path}: Path of a project including the parent groups
* %{project_id}: Database ID associated with a project
* %{default_branch}: Default branch name configured for a project’s repository
* %{commit_sha}: ID of the most recent commit to the default branch of a project’s repository
As %{project_path} is different from $ApplicationName if the project is defined in a group, the only link between the gitlab project and the builmaster application is the commit_sha var.
I think you just need to add stage as querystring and make the search for the result of the pipeline named stage for which exists an active build variable ($commitId in my example) with a value of commit_sha.
and $commitId has to be unique over all BuidMaster.
Actually, it is not possible to get more variables (ideally %{project_path} at the GitLab::Get-source step.
The filter would be then better (Filter for project_path+ commitid + stage), but this is still a build variable and not an implicit variable like $ApplicationName
I don't know if there a better way because I have just started to use Gitlab.