diff --git a/zuul/driver/gitlab/gitlabconnection.py b/zuul/driver/gitlab/gitlabconnection.py index a75e09e6f0..363281fec8 100644 --- a/zuul/driver/gitlab/gitlabconnection.py +++ b/zuul/driver/gitlab/gitlabconnection.py @@ -388,8 +388,8 @@ class GitlabConnection(BaseConnection): change.number = number # patchset is the tips commit of the PR change.patchset = patchset - change.url = url - change.uris = list(url) + change.url = url or self.getPullUrl(project.name, number) + change.uris = [change.url.split('://', 1)[-1]] # remove scheme self._change_cache[key] = change try: log.debug("Getting change mr#%s from project %s" % (