Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merged in default

changeset:   2109:c4217bc408ab
tag:         tip
parent:      2107:87aaab5cc5f5
user:        Rail Aliev <rail@mozilla.com>
date:        Fri Aug 05 18:26:32 2011 +0300
summary:     Bug 676506 - Send "Signed android build available" emails automatically. r=bhearsum

--HG--
branch : production-0.8
  • Loading branch information...
commit 46967c33ded7e752372bbd749f076c13ea88f32f 2 parents a5ba4bf + 318d496
@catlee catlee authored
Showing with 22 additions and 3 deletions.
  1. +6 −0 misc.py
  2. +16 −3 process/release.py
View
6 misc.py
@@ -135,6 +135,12 @@ def changeContainsProduct(change, productName):
return True
return False
+def changeContainsProperties(change, props={}):
+ for prop, value in props.iteritems():
+ if change.properties.getProperty(prop) != value:
+ return False
+ return True
+
def generateTestBuilderNames(name_prefix, suites_name, suites):
test_builders = []
if isinstance(suites, dict) and "totalChunks" in suites:
View
19 process/release.py
@@ -25,7 +25,8 @@
from buildbotcustom.status.mail import ChangeNotifier
from buildbotcustom.misc import get_l10n_repositories, isHgPollerTriggered, \
generateTestBuilderNames, generateTestBuilder, _nextFastReservedSlave, \
- makeLogUploadCommand, changeContainsProduct, nomergeBuilders
+ makeLogUploadCommand, changeContainsProduct, nomergeBuilders, \
+ changeContainsProperties
from buildbotcustom.common import reallyShort
from buildbotcustom.process.factory import StagingRepositorySetupFactory, \
ScriptFactory, SingleSourceFactory, ReleaseBuildFactory, \
@@ -311,14 +312,14 @@ def majorUpdateVerifyBuilders(platform):
releaseConfig['buildNumber'],
protocol='http',
server=releaseConfig['ftpServer'])
- signed_apk_url = '%s%s/%s/%s-%s.%s.eabi-arm.apk' % \
+ enUS_signed_apk_url = '%s%s/%s/%s-%s.%s.eabi-arm.apk' % \
(candidatesDir,
branchConfig['platforms']['linux-android']['stage_platform'],
locale, releaseConfig['productName'], releaseConfig['version'],
locale)
change_source.append(UrlPoller(
branch=builderPrefix('android_post_signing'),
- url=signed_apk_url,
+ url=enUS_signed_apk_url,
pollInterval=60*10
))
if branchConfig['platforms']['linux-android'].get('multi_locale'):
@@ -1488,6 +1489,18 @@ def majorUpdateVerifyBuilders(platform):
branches=[builderPrefix('post_signing')],
messageFormatter=createReleaseChangeMessage,
))
+ if releaseConfig['productName'] == 'fennec':
+ #send a message when android signing is complete
+ status.append(ChangeNotifier(
+ fromaddr="release@mozilla.com",
+ relayhost="mail.build.mozilla.org",
+ sendToInterestedUsers=False,
+ extraRecipients=[recipient],
+ branches=[builderPrefix('android_post_signing')],
+ messageFormatter=createReleaseChangeMessage,
+ changeIsImportant=lambda c: \
+ changeContainsProperties(c, dict(who=enUS_signed_apk_url))
+ ))
#send the nice(passing) release messages
status.append(MailNotifier(
Please sign in to comment.
Something went wrong with that request. Please try again.