Skip to content

Commit a22c833

Browse files
author
sunjunnan
committed
teuthology: add the function of specifying teuthology url
Signed-off-by: Sun Junnan <[email protected]> add the function of specifying teuthology url
1 parent 8d156ae commit a22c833

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

teuthology/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class TeuthologyConfig(YamlConfig):
171171
'koji_task_url': 'https://kojipkgs.fedoraproject.org/work/',
172172
'baseurl_template': 'http://{host}/{proj}-{pkg_type}-{dist}-{arch}-{flavor}/{uri}',
173173
'use_shaman': True,
174+
'teuthology_git_url': 'https://github.com/ceph/teuthology.git',
174175
'shaman_host': 'shaman.ceph.com',
175176
'teuthology_path': None,
176177
'suite_verify_ceph_hash': True,
@@ -209,6 +210,9 @@ def get_ceph_qa_suite_git_url(self):
209210
def get_ceph_git_url(self):
210211
return (self.ceph_git_url or
211212
self.ceph_git_base_url + 'ceph-ci.git')
213+
def get_teuthology_git_url(self):
214+
return self.teuthology_git_url
215+
212216

213217

214218
class JobConfig(YamlConfig):

teuthology/repo_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def build_git_url(project, project_owner='ceph'):
5050
base = config.get_ceph_cm_ansible_git_url()
5151
elif project == 'ceph':
5252
base = config.get_ceph_git_url()
53+
elif project == 'teuthology':
54+
base = config.get_teuthology_git_url()
5355
else:
5456
base = 'https://github.com/{project_owner}/{project}'
5557
url_templ = re.sub(r'\.git$', '', base)

0 commit comments

Comments
 (0)