mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
Backed out changesets 1c9a4b6596e6, cc9c846f8598, and 0d2f924ff750 (bug 1195865) for B2G build bustage.
CLOSED TREE
This commit is contained in:
parent
a54f376890
commit
c16a09e91a
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "aurora"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-11/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-aurora-android-api-11-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "aurora"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-9/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-aurora-android-api-9-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "aurora"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-aurora-android-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "nightly"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-11/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-central-android-api-11-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "nightly"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-9/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-central-android-api-9-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "nightly"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android/en-US" % (BRANCH)
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -56,8 +60,15 @@ config = {
|
||||
"LOCALE_MERGEDIR": "%(abs_merge_dir)s/",
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"POST_UPLOAD_CMD": "post_upload.py -b mozilla-central-android-l10n -p mobile -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
},
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
|
@ -6,7 +6,7 @@ config = {
|
||||
# /home/mock_mozilla/.ssh
|
||||
"UPLOAD_SSH_KEY": "%(ssh_key_dir)s/ffxbld_rsa",
|
||||
"UPLOAD_HOST": "stage.mozilla.org",
|
||||
"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 firefox -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1"
|
||||
},
|
||||
'taskcluster_index': 'index',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-11/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-11/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-9/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"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",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "release"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "release"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-11/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-11/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -3,6 +3,10 @@ MOZ_UPDATE_CHANNEL = "release"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-9/en-US"
|
||||
#STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
STAGE_SERVER = "stage.mozilla.org"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -58,8 +62,15 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"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",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
@ -67,6 +78,16 @@ config = {
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"key_alias": "release",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
"mock_packages": ['autoconf213', 'python', 'zip', 'mozilla-python27-mercurial', 'git', 'ccache',
|
||||
|
@ -6,7 +6,7 @@ config = {
|
||||
# /home/mock_mozilla/.ssh
|
||||
"UPLOAD_SSH_KEY": "%(ssh_key_dir)s/stage-ffxbld_rsa",
|
||||
"UPLOAD_HOST": "dev-stage01.srv.releng.scl3.mozilla.com",
|
||||
"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 firefox -i %(buildid)s --release-to-latest --release-to-dated",
|
||||
"UPLOAD_TO_TEMP": "1"
|
||||
},
|
||||
'taskcluster_index': 'index.garbage.staging',
|
||||
|
@ -3,7 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
#STAGE_SERVER = "stage.mozilla.org"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -59,14 +62,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -3,7 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
#STAGE_SERVER = "stage.mozilla.org"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -59,14 +62,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-11/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-11/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -3,7 +3,10 @@ MOZ_UPDATE_CHANNEL = "beta"
|
||||
MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
#STAGE_SERVER = "stage.mozilla.org"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-9/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -59,14 +62,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"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",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -4,6 +4,8 @@ MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -62,14 +64,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -4,6 +4,8 @@ MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -62,14 +64,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-11" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"base_post_upload_cmd": "post_upload.py -p mobile -n %(buildnum)s -v %(version)s --builddir android-api-11/%(locale)s --release-to-mobile-candidates-dir --nightly-dir=candidates",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-11/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -4,6 +4,8 @@ MOZILLA_DIR = BRANCH
|
||||
OBJDIR = "obj-l10n"
|
||||
STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com"
|
||||
EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-9/en-US"
|
||||
STAGE_USER = "ffxbld"
|
||||
STAGE_SSH_KEY = "~/.ssh/ffxbld_rsa"
|
||||
HG_SHARE_BASE_DIR = "/builds/hg-shared"
|
||||
|
||||
config = {
|
||||
@ -62,14 +64,31 @@ config = {
|
||||
"MOZ_UPDATE_CHANNEL": MOZ_UPDATE_CHANNEL,
|
||||
},
|
||||
"base_en_us_binary_url": EN_US_BINARY_URL,
|
||||
"upload_branch": "%s-android-api-9" % BRANCH,
|
||||
"ssh_key_dir": "~/.ssh",
|
||||
# TODO ideally we could get this info from a central location.
|
||||
# However, the agility of these individual config files might trump that.
|
||||
"upload_env": {
|
||||
"UPLOAD_USER": STAGE_USER,
|
||||
"UPLOAD_SSH_KEY": STAGE_SSH_KEY,
|
||||
"UPLOAD_HOST": STAGE_SERVER,
|
||||
"UPLOAD_TO_TEMP": "1",
|
||||
"MOZ_PKG_VERSION": "%(version)s",
|
||||
},
|
||||
"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",
|
||||
"merge_locales": True,
|
||||
"make_dirs": ['config'],
|
||||
"mozilla_dir": MOZILLA_DIR,
|
||||
"mozconfig": "%s/mobile/android/config/mozconfigs/android-api-9-10-constrained/l10n-release" % MOZILLA_DIR,
|
||||
"signature_verification_script": "tools/release/signing/verify-android-signature.sh",
|
||||
"default_actions": [
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
|
||||
# Mock
|
||||
"mock_target": "mozilla-centos6-x86_64-android",
|
||||
|
@ -189,15 +189,6 @@ class LocalesMixin(ChunkingMixin):
|
||||
tag_override=c.get('tag_override'))
|
||||
self.gecko_locale_revisions = revs
|
||||
|
||||
def query_repo(self):
|
||||
# Find the name of our repository
|
||||
mozilla_dir = self.config['mozilla_dir']
|
||||
repo = None
|
||||
for repository in self.config['repos']:
|
||||
if repository.get('dest') == mozilla_dir:
|
||||
repo = repository['repo']
|
||||
break
|
||||
return repo
|
||||
|
||||
# GaiaLocalesMixin {{{1
|
||||
class GaiaLocalesMixin(object):
|
||||
|
@ -63,9 +63,7 @@ configuration_tokens = ('branch',
|
||||
'en_us_binary_url',
|
||||
'update_platform',
|
||||
'update_channel',
|
||||
'ssh_key_dir',
|
||||
'stage_product',
|
||||
)
|
||||
'ssh_key_dir')
|
||||
# some other values such as "%(version)s", "%(buildid)s", ...
|
||||
# are defined at run time and they cannot be enforced in the _pre_config_lock
|
||||
# phase
|
||||
@ -161,7 +159,6 @@ class DesktopSingleLocale(LocalesMixin, ReleaseMixin, MockMixin, BuildbotMixin,
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"create-virtualenv",
|
||||
"taskcluster-upload",
|
||||
"funsize-props",
|
||||
"submit-to-balrog",
|
||||
@ -1012,6 +1009,14 @@ class DesktopSingleLocale(LocalesMixin, ReleaseMixin, MockMixin, BuildbotMixin,
|
||||
self.warning('Skipping S3 file upload: No taskcluster credentials.')
|
||||
return
|
||||
|
||||
# We need to activate the virtualenv so that we can import taskcluster
|
||||
# (and its dependent modules, like requests and hawk). Normally we
|
||||
# could create the virtualenv as an action, but due to some odd
|
||||
# dependencies with query_build_env() being called from build(), which
|
||||
# is necessary before the virtualenv can be created.
|
||||
self.disable_mock()
|
||||
self.create_virtualenv()
|
||||
self.enable_mock()
|
||||
self.activate_virtualenv()
|
||||
|
||||
# Enable Taskcluster debug logging, so at least we get some debug
|
||||
|
@ -15,7 +15,6 @@ import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import shlex
|
||||
|
||||
try:
|
||||
import simplejson as json
|
||||
@ -38,15 +37,12 @@ from mozharness.base.vcs.vcsbase import MercurialScript
|
||||
from mozharness.mozilla.l10n.locales import LocalesMixin
|
||||
from mozharness.mozilla.mock import MockMixin
|
||||
from mozharness.mozilla.updates.balrog import BalrogMixin
|
||||
from mozharness.base.python import VirtualenvMixin
|
||||
from mozharness.mozilla.taskcluster_helper import Taskcluster
|
||||
|
||||
|
||||
# MobileSingleLocale {{{1
|
||||
class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
||||
MobileSigningMixin, TransferMixin, TooltoolMixin,
|
||||
BuildbotMixin, PurgeMixin, MercurialScript, BalrogMixin,
|
||||
VirtualenvMixin):
|
||||
BuildbotMixin, PurgeMixin, MercurialScript, BalrogMixin):
|
||||
config_options = [[
|
||||
['--locale', ],
|
||||
{"action": "extend",
|
||||
@ -108,35 +104,21 @@ class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
||||
]]
|
||||
|
||||
def __init__(self, require_config_file=True):
|
||||
buildscript_kwargs = {
|
||||
'all_actions': [
|
||||
LocalesMixin.__init__(self)
|
||||
MercurialScript.__init__(
|
||||
self,
|
||||
config_options=self.config_options,
|
||||
all_actions=[
|
||||
"clobber",
|
||||
"pull",
|
||||
"list-locales",
|
||||
"setup",
|
||||
"repack",
|
||||
"upload-repacks",
|
||||
"create-virtualenv",
|
||||
"taskcluster-upload",
|
||||
"submit-to-balrog",
|
||||
"summary",
|
||||
],
|
||||
'config': {
|
||||
'taskcluster_credentials_file': 'oauth.txt',
|
||||
'virtualenv_modules': [
|
||||
'requests==2.2.1',
|
||||
'PyHawk-with-a-single-extra-commit==0.1.5',
|
||||
'taskcluster==0.0.15',
|
||||
],
|
||||
'virtualenv_path': 'venv',
|
||||
},
|
||||
}
|
||||
LocalesMixin.__init__(self)
|
||||
MercurialScript.__init__(
|
||||
self,
|
||||
config_options=self.config_options,
|
||||
require_config_file=require_config_file,
|
||||
**buildscript_kwargs
|
||||
require_config_file=require_config_file
|
||||
)
|
||||
self.base_package_name = None
|
||||
self.buildid = None
|
||||
@ -174,25 +156,13 @@ class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
||||
if self.upload_env:
|
||||
return self.upload_env
|
||||
c = self.config
|
||||
replace_dict = {
|
||||
'buildid': self.query_buildid(),
|
||||
'version': self.query_version(),
|
||||
}
|
||||
replace_dict.update(c)
|
||||
|
||||
# Android l10n builds use a non-standard location for l10n files. Other
|
||||
# builds go to 'mozilla-central-l10n', while android builds add part of
|
||||
# the platform name as well, like 'mozilla-central-android-api-11-l10n'.
|
||||
# So we override the branch with something that contains the platform
|
||||
# name.
|
||||
replace_dict['branch'] = c['upload_branch']
|
||||
|
||||
buildid = self.query_buildid()
|
||||
version = self.query_version()
|
||||
upload_env = self.query_env(partial_env=c.get("upload_env"),
|
||||
replace_dict=replace_dict)
|
||||
replace_dict={'buildid': buildid,
|
||||
'version': version})
|
||||
if 'MOZ_SIGNING_SERVERS' in os.environ:
|
||||
upload_env['MOZ_SIGN_CMD'] = subprocess.list2cmdline(self.query_moz_sign_cmd())
|
||||
if self.query_is_release():
|
||||
upload_env['MOZ_PKG_VERSION'] = '%(version)s' % replace_dict
|
||||
self.upload_env = upload_env
|
||||
return self.upload_env
|
||||
|
||||
@ -465,69 +435,6 @@ class MobileSingleLocale(MockMixin, LocalesMixin, ReleaseMixin,
|
||||
self.summarize_success_count(success_count, total_count,
|
||||
message="Repacked %d of %d binaries successfully.")
|
||||
|
||||
def taskcluster_upload(self):
|
||||
auth = os.path.join(os.getcwd(), self.config['taskcluster_credentials_file'])
|
||||
credentials = {}
|
||||
execfile(auth, credentials)
|
||||
client_id = credentials.get('taskcluster_clientId')
|
||||
access_token = credentials.get('taskcluster_accessToken')
|
||||
if not client_id or not access_token:
|
||||
self.warning('Skipping S3 file upload: No taskcluster credentials.')
|
||||
return
|
||||
|
||||
self.activate_virtualenv()
|
||||
|
||||
dirs = self.query_abs_dirs()
|
||||
locales = self.query_locales()
|
||||
make = self.query_exe("make")
|
||||
upload_env = self.query_upload_env()
|
||||
cwd = dirs['abs_locales_dir']
|
||||
branch = self.config['branch']
|
||||
revision = self.query_revision()
|
||||
repo = self.query_repo()
|
||||
pushinfo = self.vcs_query_pushinfo(repo, revision, vcs='hgtool')
|
||||
routes_json = os.path.join(self.query_abs_dirs()['abs_mozilla_dir'],
|
||||
'testing/taskcluster/routes.json')
|
||||
with open(routes_json) as f:
|
||||
contents = json.load(f)
|
||||
templates = contents['l10n']
|
||||
|
||||
for locale in locales:
|
||||
output = self.get_output_from_command_m(
|
||||
"%s echo-variable-UPLOAD_FILES AB_CD=%s" % (make, locale),
|
||||
cwd=cwd,
|
||||
env=upload_env,
|
||||
)
|
||||
files = shlex.split(output)
|
||||
abs_files = [os.path.abspath(os.path.join(cwd, f)) for f in files]
|
||||
|
||||
routes = []
|
||||
fmt = {
|
||||
'index': self.config.get('taskcluster_index', 'index.garbage.staging'),
|
||||
'project': branch,
|
||||
'head_rev': revision,
|
||||
'build_product': self.config['stage_product'],
|
||||
'build_name': self.query_build_name(),
|
||||
'build_type': self.query_build_type(),
|
||||
'locale': locale,
|
||||
}
|
||||
for template in templates:
|
||||
routes.append(template.format(**fmt))
|
||||
|
||||
self.info('Using routes: %s' % routes)
|
||||
tc = Taskcluster(branch,
|
||||
pushinfo.pushdate, # Use pushdate as the rank
|
||||
client_id,
|
||||
access_token,
|
||||
self.log_obj,
|
||||
)
|
||||
task = tc.create_task(routes)
|
||||
tc.claim_task(task)
|
||||
|
||||
for upload_file in abs_files:
|
||||
tc.create_artifact(task, upload_file)
|
||||
tc.report_completed(task)
|
||||
|
||||
def upload_repacks(self):
|
||||
c = self.config
|
||||
dirs = self.query_abs_dirs()
|
||||
|
Loading…
Reference in New Issue
Block a user