Merge pull request #631 from jzelinskie/glfix
remove network usage from GL repo URL
This commit is contained in:
commit
0e27852444
1 changed files with 1 additions and 7 deletions
|
@ -5,7 +5,6 @@ from app import app
|
||||||
from jsonschema import validate
|
from jsonschema import validate
|
||||||
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
|
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
|
||||||
TriggerDeactivationException, TriggerStartException,
|
TriggerDeactivationException, TriggerStartException,
|
||||||
EmptyRepositoryException, ValidationRequestException,
|
|
||||||
SkipRequestException, InvalidPayloadException,
|
SkipRequestException, InvalidPayloadException,
|
||||||
determine_build_ref, raise_if_skipped_build,
|
determine_build_ref, raise_if_skipped_build,
|
||||||
find_matching_branches)
|
find_matching_branches)
|
||||||
|
@ -298,12 +297,7 @@ class GitLabBuildTrigger(BuildTriggerHandler):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_repository_url(self):
|
def get_repository_url(self):
|
||||||
gl_client = self._get_authorized_client()
|
return 'https://gitlab.com/%s' % self.config['build_source']
|
||||||
repository = gl_client.getproject(self.config['build_source'])
|
|
||||||
if repository is False:
|
|
||||||
return None
|
|
||||||
|
|
||||||
return '%s/%s' % (gl_client.host, repository['path_with_namespace'])
|
|
||||||
|
|
||||||
def lookup_user(self, email):
|
def lookup_user(self, email):
|
||||||
gl_client = self._get_authorized_client()
|
gl_client = self._get_authorized_client()
|
||||||
|
|
Reference in a new issue