Skip to content

Commit

Permalink
teuthology: add the function of specifying teuthology url
Browse files Browse the repository at this point in the history
Signed-off-by: Sun Junnan <[email protected]>
Signed-off-by: Yang Honggang <[email protected]>
add the function of specifying teuthology url
  • Loading branch information
sunjunnan committed Apr 6, 2023
1 parent 8d156ae commit 6aaebe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teuthology/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class TeuthologyConfig(YamlConfig):
'koji_task_url': 'https://kojipkgs.fedoraproject.org/work/',
'baseurl_template': 'http://{host}/{proj}-{pkg_type}-{dist}-{arch}-{flavor}/{uri}',
'use_shaman': True,
'teuthology_git_url': 'https://github.com/ceph/teuthology.git',
'shaman_host': 'shaman.ceph.com',
'teuthology_path': None,
'suite_verify_ceph_hash': True,
Expand Down Expand Up @@ -209,6 +210,9 @@ def get_ceph_qa_suite_git_url(self):
def get_ceph_git_url(self):
return (self.ceph_git_url or
self.ceph_git_base_url + 'ceph-ci.git')
def get_teuthology_git_url(self):
return self.teuthology_git_url



class JobConfig(YamlConfig):
Expand Down
2 changes: 2 additions & 0 deletions teuthology/repo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def build_git_url(project, project_owner='ceph'):
base = config.get_ceph_cm_ansible_git_url()
elif project == 'ceph':
base = config.get_ceph_git_url()
elif project == 'teuthology':
base = config.get_teuthology_git_url()
else:
base = 'https://github.com/{project_owner}/{project}'
url_templ = re.sub(r'\.git$', '', base)
Expand Down

0 comments on commit 6aaebe8

Please sign in to comment.