Skip to content

Commit b952a91

Browse files
committed
gitlab: use correct url to fix build triggers
1 parent 466e79b commit b952a91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

buildbot_nix/buildbot_nix/gitlab_project.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ def name(self) -> str:
100100

101101
@property
102102
def url(self) -> str:
103-
return self.data.web_url
103+
# Not `web_url`: the buildbot gitlab hook dialect uses repository.url which seems
104+
# to be the ssh url in practice.
105+
# See: https://github.com/buildbot/buildbot/blob/master/master/buildbot/www/hooks/gitlab.py#L271
106+
return self.data.ssh_url_to_repo
104107

105108
@property
106109
def project_id(self) -> str:

0 commit comments

Comments
 (0)