mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1277595 - Add a --triggered-by=nightly flag to taskgraph, r=dustin
MozReview-Commit-ID: DztkFP8nCwc --HG-- extra : rebase_source : 35bf7740541674614459574e44e70cbd258fa7a1
This commit is contained in:
parent
d9f7626454
commit
c503809166
@ -144,6 +144,12 @@ class MachCommands(MachCommandBase):
|
||||
@CommandArgument('--level',
|
||||
required=True,
|
||||
help='SCM level of this repository')
|
||||
@CommandArgument('--triggered-by',
|
||||
choices=['nightly', 'push'],
|
||||
default='push',
|
||||
help='Source of execution of the decision graph')
|
||||
@CommandArgument('--target-tasks-method',
|
||||
help='method for selecting the target tasks to generate')
|
||||
def taskgraph_decision(self, **options):
|
||||
"""Run the decision task: generate a task graph and submit to
|
||||
TaskCluster. This is only meant to be called within decision tasks,
|
||||
|
@ -110,6 +110,7 @@ def get_decision_parameters(options):
|
||||
'pushdate',
|
||||
'owner',
|
||||
'level',
|
||||
'triggered_by',
|
||||
'target_tasks_method',
|
||||
] if n in options}
|
||||
|
||||
@ -122,6 +123,10 @@ def get_decision_parameters(options):
|
||||
"for this project".format(project, __file__))
|
||||
parameters.update(PER_PROJECT_PARAMETERS['default'])
|
||||
|
||||
# `target_tasks_method` has higher precedence than `project` parameters
|
||||
if 'target_tasks_method' in options:
|
||||
parameters['target_tasks_method'] = options['target_tasks_method']
|
||||
|
||||
return Parameters(parameters)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user