зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1251320 - fix staging mobile l10n post_upload flags; r=nthomas
MozReview-Commit-ID: 6SBNv5oqoBl
This commit is contained in:
Родитель
e967ca76fd
Коммит
ba17be1bb5
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-15" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-15/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-15" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-15/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -6,8 +6,11 @@ config = {
|
|||
# /home/mock_mozilla/.ssh
|
||||
"UPLOAD_SSH_KEY": "%(ssh_key_dir)s/stage-ffxbld_rsa",
|
||||
"UPLOAD_HOST": "upload.ffxbld.productdelivery.stage.mozaws.net",
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b %(branch)s-l10n -p %(stage_product)s -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b %(branch)s-l10n -p %(stage_product)s -i %(buildid)s --release-to-latest --release-to-dated %(post_upload_extra)s",
|
||||
"UPLOAD_TO_TEMP": "1"
|
||||
},
|
||||
'taskcluster_index': 'index.garbage.staging',
|
||||
'post_upload_extra': ['--bucket-prefix', 'net-mozaws-stage-delivery',
|
||||
'--url-prefix', 'http://ftp.stage.mozaws.net/',
|
||||
],
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-15" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-15/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -60,7 +60,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -63,7 +63,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-15" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-15/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-15/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -63,7 +63,7 @@ config = {
|
|||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-9/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates %(post_upload_extra)s",
|
||||
"merge_locales": True,
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
|
|
|
@ -187,6 +187,7 @@ class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
|||
# So we override the branch with something that contains the platform
|
||||
# name.
|
||||
replace_dict['branch'] = c['upload_branch']
|
||||
replace_dict['post_upload_extra'] = ' '.join(c.get('post_upload_extra', []))
|
||||
|
||||
upload_env = self.query_env(partial_env=c.get("upload_env"),
|
||||
replace_dict=replace_dict)
|
||||
|
@ -558,7 +559,7 @@ class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
|||
continue
|
||||
total_count += 1
|
||||
if c.get('base_post_upload_cmd'):
|
||||
upload_env['POST_UPLOAD_CMD'] = c['base_post_upload_cmd'] % {'version': version, 'locale': locale, 'buildnum': str(buildnum)}
|
||||
upload_env['POST_UPLOAD_CMD'] = c['base_post_upload_cmd'] % {'version': version, 'locale': locale, 'buildnum': str(buildnum), 'post_upload_extra': ' '.join(c.get('post_upload_extra', []))}
|
||||
output = self.get_output_from_command_m(
|
||||
# Ugly hack to avoid |make upload| stderr from showing up
|
||||
# as get_output_from_command errors
|
||||
|
|
Загрузка…
Ссылка в новой задаче