Bug 1435638 - initialize repo using an ssh clone, r=jlund DONTBUILD

--HG--
extra : source : f0709cc77b8270e04e42b56d7b85b9fea3c9060c
extra : amend_source : e7ea27e4c2324e00b5ee0b0895fcc04816c85ac1
This commit is contained in:
Nick Thomas 2018-02-23 11:27:22 +13:00
Родитель 75bf35692e
Коммит 9cab4003fe
4 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -3,4 +3,5 @@ config = {
"log_name": "partner_repack",
"repack_manifests_url": "git@github.com:mozilla-partners/mozilla-sha1-manifest",
"repo_file": "https://raw.githubusercontent.com/mozilla/git-repo/master/repo",
"repo_url": "git@github.com:mozilla/git-repo.git",
}

Просмотреть файл

@ -3,4 +3,5 @@ config = {
"log_name": "partner_repack",
"repack_manifests_url": "git@github.com:mozilla-partners/repack-manifests.git",
"repo_file": "https://raw.githubusercontent.com/mozilla/git-repo/master/repo",
"repo_url": "git@github.com:mozilla/git-repo.git",
}

Просмотреть файл

@ -3,4 +3,5 @@ config = {
"log_name": "partner_repack",
"repack_manifests_url": "git@github.com:mozilla-partners/repack-manifests.git",
"repo_file": "https://raw.githubusercontent.com/mozilla/git-repo/master/repo",
"repo_url": "git@github.com:mozilla/git-repo.git",
}

Просмотреть файл

@ -109,7 +109,7 @@ class DesktopPartnerRepacks(ReleaseMixin, BuildbotMixin, PurgeMixin,
self.config.get('buildbot_json_path'))
props = self.buildbot_config["properties"]
for prop in ['version', 'build_number', 'revision', 'repo_file',
'repack_manifests_url', 'partner']:
'repo_url', 'repack_manifests_url', 'partner']:
if props.get(prop):
self.info("Overriding %s with %s" % (prop, props[prop]))
self.config[prop] = props.get(prop)
@ -120,6 +120,8 @@ class DesktopPartnerRepacks(ReleaseMixin, BuildbotMixin, PurgeMixin,
self.fatal("Build number (-n) not supplied.")
if 'repo_file' not in self.config:
self.fatal("repo_file not supplied.")
if 'repo_url' not in self.config:
self.fatal("repo_url not supplied.")
if 'repack_manifests_url' not in self.config:
self.fatal("repack_manifests_url not supplied.")
@ -148,6 +150,7 @@ class DesktopPartnerRepacks(ReleaseMixin, BuildbotMixin, PurgeMixin,
def _repo_init(self, repo):
status = self.run_command([repo, "init", "--no-repo-verify",
"--repo-url", self.config['repo_url'],
"-u", self.config['repack_manifests_url']],
cwd=self.query_abs_dirs()['abs_work_dir'])
if status: