Merge pull request #631 from jzelinskie/glfix

remove network usage from GL repo URL
This commit is contained in:
Jimmy Zelinskie 2015-10-13 13:46:27 -04:00
commit 0e27852444

View file

@ -5,7 +5,6 @@ from app import app
from jsonschema import validate
from buildtrigger.triggerutil import (RepositoryReadException, TriggerActivationException,
TriggerDeactivationException, TriggerStartException,
EmptyRepositoryException, ValidationRequestException,
SkipRequestException, InvalidPayloadException,
determine_build_ref, raise_if_skipped_build,
find_matching_branches)
@ -298,12 +297,7 @@ class GitLabBuildTrigger(BuildTriggerHandler):
return None
def get_repository_url(self):
gl_client = self._get_authorized_client()
repository = gl_client.getproject(self.config['build_source'])
if repository is False:
return None
return '%s/%s' % (gl_client.host, repository['path_with_namespace'])
return 'https://gitlab.com/%s' % self.config['build_source']
def lookup_user(self, email):
gl_client = self._get_authorized_client()