forked from mirrors/gecko-dev
Bug 1839317 - Add cron task for Firefox Snap upstream builds r=releng-reviewers,taskgraph-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D181731
This commit is contained in:
parent
218332994f
commit
db872e3441
2 changed files with 21 additions and 0 deletions
10
.cron.yml
10
.cron.yml
|
|
@ -394,3 +394,13 @@ jobs:
|
|||
- mozilla-central
|
||||
when:
|
||||
- {hour: 0, minute: 00}
|
||||
|
||||
- name: snap-upstream
|
||||
job:
|
||||
type: decision-task
|
||||
treeherder-symbol: snap-upstream
|
||||
target-tasks-method: snap_upstream_build
|
||||
run-on-projects:
|
||||
- mozilla-central
|
||||
when:
|
||||
- {hour: 0, minute: 0}
|
||||
|
|
|
|||
|
|
@ -1499,3 +1499,14 @@ def target_tasks_holly(full_task_graph, parameters, graph_config):
|
|||
return task.kind == "updatebot"
|
||||
|
||||
return [l for l, t in full_task_graph.tasks.items() if filter(t)]
|
||||
|
||||
|
||||
@_target_task("snap_upstream_build")
|
||||
def target_tasks_snap_upstream_build(full_task_graph, parameters, graph_config):
|
||||
"""
|
||||
Select tasks for building snap as upstream. Omit -try because it does not
|
||||
really make sense on m-c
|
||||
"""
|
||||
for name, task in full_task_graph.tasks.items():
|
||||
if "snap-upstream-build" in name and not "-try" in name:
|
||||
yield name
|
||||
|
|
|
|||
Loading…
Reference in a new issue