mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1497575: [staging-release] Add a target task's method that includes all release builds; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D8623 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
470c6dae58
commit
ac8c76c813
@ -571,3 +571,19 @@ def target_tasks_bouncer_check(full_task_graph, parameters, graph_config):
|
||||
# For now any task in the repo-update kind is ok
|
||||
return task.kind in ['cron-bouncer-check']
|
||||
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
|
||||
|
||||
|
||||
@_target_task('staging_release_builds')
|
||||
def target_tasks_staging_release(full_task_graph, parameters, graph_config):
|
||||
"""
|
||||
Select all builds that are part of releases.
|
||||
"""
|
||||
|
||||
def filter(task):
|
||||
if not task.attributes.get('shipping_product'):
|
||||
return False
|
||||
if task.attributes.get('shipping_phase') == 'build':
|
||||
return True
|
||||
return False
|
||||
|
||||
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]
|
||||
|
Loading…
Reference in New Issue
Block a user