Bug 1277595 - Add a --triggered-by=nightly flag to taskgraph, r=dustin

MozReview-Commit-ID: 3ipPgeFTWFu
This commit is contained in:
Jordan Lund
2016-09-02 10:29:07 -07:00
parent 7ff5919ba5
commit 0ec941f097
2 changed files with 11 additions and 0 deletions

View File

@@ -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,