# Where all git repos are considered to reside.
ceph_git_base_url: https://github.com/ceph/
+ # Where the ceph git repo is considered to reside.
+ ceph_git_url: https://github.com/ceph/ceph.git
+
+ # Where the ceph-qa-suite git repo is considered to reside.
+ ceph_qa_suite_git_url: https://github.com/ceph/ceph-qa-suite.git
+
# Where teuthology and ceph-qa-suite repos should be stored locally
src_base_path: /home/foo/src
'automated_scheduling': False,
'reserve_machines': 5,
'ceph_git_base_url': 'https://github.com/ceph/',
+ 'ceph_git_url': None,
+ 'ceph_qa_suite_git_url': None,
'gitbuilder_host': 'gitbuilder.ceph.com',
'lab_domain': 'front.sepia.ceph.com',
'lock_server': 'http://paddles.front.sepia.ceph.com/',
def __init__(self, yaml_path=None):
super(TeuthologyConfig, self).__init__(yaml_path or self.yaml_path)
+ def get_ceph_qa_suite_git_url(self):
+ return (self.ceph_qa_suite_git_url or
+ self.ceph_git_base_url + 'ceph-qa-suite.git')
+
+ def get_ceph_git_url(self):
+ return (self.ceph_git_url or
+ self.ceph_git_base_url + 'ceph.git')
class JobConfig(YamlConfig):
pass
:param branch: The branch to fetch
:returns: The destination path
"""
- url = config.ceph_git_base_url + 'ceph-qa-suite.git'
- return fetch_repo(url, branch, lock=lock)
+ return fetch_repo(config.get_ceph_qa_suite_git_url(),
+ branch, lock=lock)
def fetch_teuthology(branch, lock=True):