Permalink
Browse files

bug 750837 - aurora mobile signing. r=rail

--HG--
rename : configs/signing/android_mozilla-beta.py => configs/signing/android_mozilla-aurora.py
rename : configs/signing/staging_android_mozilla-beta.py => configs/signing/staging_android_mozilla-aurora.py
  • Loading branch information...
1 parent e1bb6c5 commit 048bd6bbc4a0fb23b51147d8f3172fd26b5e03e2 @escapewindow escapewindow committed May 2, 2012
Showing with 224 additions and 0 deletions.
  1. +116 −0 configs/signing/android_mozilla-aurora.py
  2. +108 −0 configs/signing/staging_android_mozilla-aurora.py
@@ -0,0 +1,116 @@
+#!/usr/bin/env python
+
+ADDITIONAL_LOCALES = ["en-US", "multi"]
+TAG = "default"
+#AUS_SERVER = "dev-stage01.build.mozilla.org"
+AUS_SERVER = "aus3-staging.mozilla.org"
+#FTP_SERVER = "dev-stage01.build.mozilla.org"
+FTP_SERVER = "stage.mozilla.org"
+AUS_UPLOAD_BASE_DIR = "/opt/aus2/snippets/staging"
+AUS_DIR_BASE_NAME = "Fennec-%(version)s-build%(buildnum)d"
+FTP_UPLOAD_BASE_DIR = "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d"
+#DOWNLOAD_BASE_URL = "http://%s%s" % (FTP_SERVER, FTP_UPLOAD_BASE_DIR)
+DOWNLOAD_BASE_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d"
+APK_BASE_NAME = "fennec-%(version)s.%(locale)s.android-arm.apk"
+BUILDID_BASE_URL = DOWNLOAD_BASE_URL + "/%(platform)s_info.txt"
+STAGE_SSH_KEY = '~/.ssh/ffxbld_dsa'
+#STAGE_SSH_KEY = '~/staging_ssh/ffxbld_dsa'
+AUS_SSH_KEY = '~/.ssh/auspush'
+#AUS_SSH_KEY = '~/staging_ssh/id_rsa'
+
+RELEASE_UPDATE_URL = "http://download.mozilla.org/?product=fennec-%(version)s-complete&os=%(platform)s&lang=%(locale)s"
+BETATEST_UPDATE_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/%(apk_name)s"
+SNIPPET_TEMPLATE = """version=1
+type=complete
+url=%(url)s
+hashFunction=sha512
+hashValue=%(sha512_hash)s
+size=%(size)d
+build=%(buildid)s
+appv=%(version)s
+extv=%(version)s
+"""
+
+KEYSTORE = "/home/cltsign/.android/android-release.keystore"
+
+JAVA_HOME = "/tools/jdk-1.6.0_17"
+JARSIGNER = "%s/bin/jarsigner" % JAVA_HOME
+KEY_ALIAS = "release"
+
+config = {
+ "log_name": "sign_android_aurora",
+ "work_dir": "aurora",
+
+ "additional_locales": ADDITIONAL_LOCALES,
+ "locales_file": "buildbot-configs/mozilla/l10n-changesets_mobile-aurora.json",
+ "release_config_file": "buildbot-configs/mozilla/release-fennec-mozilla-aurora.py",
+
+ "platforms": ['android', 'android-xul'],
+ "update_platforms": ['android'],
+ "update_platform_map": {
+ 'android': 'Android_arm-eabi-gcc3',
+ },
+ "update_channels": {
+ 'release': {
+ 'url': RELEASE_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': AUS_DIR_BASE_NAME,
+ },
+ 'betatest': {
+ 'url': BETATEST_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': '%s-test' % AUS_DIR_BASE_NAME,
+ },
+ 'releasetest': {
+ 'url': RELEASE_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': '%s-test' % AUS_DIR_BASE_NAME,
+ },
+ },
+ "ftp_upload_base_dir": FTP_UPLOAD_BASE_DIR,
+ # These should be from release_config, but that has stage-ffxbld
+ # which doesn't work with dev-stage01.
+ "ftp_ssh_key": STAGE_SSH_KEY,
+ "ftp_user": "ffxbld",
+
+ "aus_ssh_key": AUS_SSH_KEY,
+ "aus_upload_base_dir": AUS_UPLOAD_BASE_DIR,
+
+ "apk_base_name": APK_BASE_NAME,
+ "unsigned_apk_base_name": APK_BASE_NAME,
+ "download_base_url": DOWNLOAD_BASE_URL,
+ "download_unsigned_base_subdir": "unsigned/%(platform)s/%(locale)s",
+ "download_signed_base_subdir": "%(platform)s/%(locale)s",
+ "buildid_base_url": BUILDID_BASE_URL,
+ "old_buildid_base_url": BUILDID_BASE_URL,
+ "actions": [
+ "passphrase",
+ "clobber",
+ "pull",
+ "download-unsigned-bits",
+ "sign",
+ "verify-signatures",
+ "upload-signed-bits",
+ ],
+
+ "keystore": KEYSTORE,
+ "key_alias": KEY_ALIAS,
+ "env": {
+ "PATH": JAVA_HOME + "/bin:%(PATH)s",
+ },
+ "exes": {
+ "jarsigner": JARSIGNER,
+ "zipalign": "/tools/android-sdk-r8/tools/zipalign",
+ },
+ "signature_verification_script": "tools/release/signing/verify-android-signature.sh",
+
+ "user_repo_override": "build",
+ "tag_override": TAG,
+ "repos": [{
+ "repo": "http://hg.mozilla.org/%(user_repo_override)s/tools",
+ "dest": "tools",
+ },{
+ "repo": "http://hg.mozilla.org/%(user_repo_override)s/buildbot-configs",
+ "dest": "buildbot-configs",
+ }],
+}
@@ -0,0 +1,108 @@
+#!/usr/bin/env python
+
+import os
+
+ADDITIONAL_LOCALES = ["en-US", "multi"]
+TAG = "default"
+AUS_SERVER = "dev-stage01.build.mozilla.org"
+FTP_SERVER = "dev-stage01.build.mozilla.org"
+AUS_UPLOAD_BASE_DIR = "/opt/aus2/snippets/staging"
+AUS_DIR_BASE_NAME = "Fennec-%(version)s-build%(buildnum)d"
+FTP_UPLOAD_BASE_DIR = "/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d"
+DOWNLOAD_BASE_URL = "http://%s%s" % (FTP_SERVER, FTP_UPLOAD_BASE_DIR)
+#DOWNLOAD_BASE_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d"
+APK_BASE_NAME = "fennec-%(version)s.%(locale)s.android-arm.apk"
+BUILDID_BASE_URL = DOWNLOAD_BASE_URL + "/%(platform)s_info.txt"
+FFXBLD_SSH_KEY = '~/.ssh/ffxbld_dsa'
+CLTBLD_SSH_KEY = '~/.ssh/id_rsa'
+
+RELEASE_UPDATE_URL = "http://download.mozilla.org/?product=fennec-%(version)s-complete&os=%(platform)s&lang=%(locale)s"
+BETATEST_UPDATE_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/%(apk_name)s"
+SNIPPET_TEMPLATE = """version=1
+type=complete
+url=%(url)s
+hashFunction=sha512
+hashValue=%(sha512_hash)s
+size=%(size)d
+build=%(buildid)s
+appv=%(version)s
+extv=%(version)s
+"""
+
+KEYSTORE = "%s/.android/android.keystore" % os.environ['HOME']
+
+JAVA_HOME = "/tools/jdk6"
+JARSIGNER = "%s/bin/jarsigner" % JAVA_HOME
+KEY_ALIAS = "nightly"
+
+config = {
+ "log_name": "sign_android_staging_aurora",
+ "work_dir": "staging_aurora",
+
+ "additional_locales": ADDITIONAL_LOCALES,
+ "locales_file": "buildbot-configs/mozilla/l10n-changesets_mobile-aurora.json",
+ "release_config_file": "buildbot-configs/mozilla/staging_release-fennec-mozilla-aurora.py",
+
+ "platforms": ['android', 'android-xul'],
+ "update_platforms": ['android'],
+ "update_platform_map": {
+ 'android': 'Android_arm-eabi-gcc3',
+ },
+# "enable_partner_repacks": True,
+# "partner_platforms": ['android'],
+# "partners": ['google-play'],
+ "update_channels": {
+ 'release': {
+ 'url': RELEASE_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': AUS_DIR_BASE_NAME,
+ },
+ 'betatest': {
+ 'url': BETATEST_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': '%s-test' % AUS_DIR_BASE_NAME,
+ },
+ 'releasetest': {
+ 'url': RELEASE_UPDATE_URL,
+ 'template': SNIPPET_TEMPLATE,
+ 'dir_base_name': '%s-test' % AUS_DIR_BASE_NAME,
+ },
+ },
+ "ftp_upload_base_dir": FTP_UPLOAD_BASE_DIR,
+ # These should be from release_config, but that has stage-ffxbld
+ # which doesn't work with dev-stage01.
+ "ftp_ssh_key": FFXBLD_SSH_KEY,
+ "ftp_user": "ffxbld",
+
+ "aus_ssh_key": CLTBLD_SSH_KEY,
+ "aus_upload_base_dir": AUS_UPLOAD_BASE_DIR,
+
+ "apk_base_name": APK_BASE_NAME,
+ "unsigned_apk_base_name": APK_BASE_NAME,
+ "download_base_url": DOWNLOAD_BASE_URL,
+ "download_unsigned_base_subdir": "unsigned/%(platform)s/%(locale)s",
+ "download_signed_base_subdir": "%(platform)s/%(locale)s",
+ "buildid_base_url": BUILDID_BASE_URL,
+ "old_buildid_base_url": BUILDID_BASE_URL,
+
+ "keystore": KEYSTORE,
+ "key_alias": KEY_ALIAS,
+ "env": {
+ "PATH": JAVA_HOME + "/bin:%(PATH)s",
+ },
+ "exes": {
+ "jarsigner": JARSIGNER,
+ "zipalign": "/tools/android-sdk-r13/tools/zipalign",
+ },
+ "signature_verification_script": "tools/release/signing/verify-android-signature.sh",
+
+ "user_repo_override": "users/stage-ffxbld",
+ "tag_override": TAG,
+ "repos": [{
+ "repo": "http://hg.mozilla.org/%(user_repo_override)s/tools",
+ "dest": "tools",
+ },{
+ "repo": "http://hg.mozilla.org/%(user_repo_override)s/buildbot-configs",
+ "dest": "buildbot-configs",
+ }],
+}

0 comments on commit 048bd6b

Please sign in to comment.