Bug 1317783 - Put PushApk tasks in-tree r=aki

MozReview-Commit-ID: 8uGIuj7OXwZ
This commit is contained in:
Johan Lorenzo
2017-03-30 12:13:01 +02:00
parent 6c32e344df
commit 65dab61921
10 changed files with 421 additions and 3 deletions

View File

@@ -344,6 +344,28 @@ task_description_schema = Schema({
# Paths to the artifacts to sign
Required('paths'): [basestring],
}],
}, {
Required('implementation'): 'push-apk-breakpoint',
Required('payload'): object,
}, {
Required('implementation'): 'push-apk',
# list of artifact URLs for the artifacts that should be beetmoved
Required('upstream-artifacts'): [{
# taskId of the task with the artifact
Required('taskId'): taskref_or_string,
# type of signing task (for CoT)
Required('taskType'): basestring,
# Paths to the artifacts to sign
Required('paths'): [basestring],
}],
# "Invalid" is a noop for try and other non-supported branches
Required('google-play-track'): Any('production', 'beta', 'alpha', 'invalid'),
Required('dry-run', default=True): bool,
}),
})
@@ -381,6 +403,7 @@ GROUP_NAMES = {
'TW32': 'Toolchain builds for Windows 32-bits',
'TW64': 'Toolchain builds for Windows 64-bits',
'SM-tc': 'Spidermonkey builds',
'pub': 'APK publishing',
}
UNKNOWN_GROUP_NAME = "Treeherder group {} has no name; add it to " + __file__
@@ -597,6 +620,22 @@ def build_balrog_payload(config, task, task_def):
}
@payload_builder('push-apk')
def build_push_apk_payload(config, task, task_def):
worker = task['worker']
task_def['payload'] = {
'dry_run': worker['dry-run'],
'upstreamArtifacts': worker['upstream-artifacts'],
'google_play_track': worker['google-play-track'],
}
@payload_builder('push-apk-breakpoint')
def build_push_apk_breakpoint_payload(config, task, task_def):
task_def['payload'] = task['worker']['payload']
@payload_builder('native-engine')
def build_macosx_engine_payload(config, task, task_def):
worker = task['worker']