Bug 1247085 - Generate empty graph when no try flags given r=wcosta

MozReview-Commit-ID: DOq9gJBTUY6
This commit is contained in:
Gregory Arndt
2016-02-29 09:51:17 -06:00
parent 03a3a9ee7c
commit 19815ffe44
3 changed files with 44 additions and 32 deletions

View File

@@ -308,15 +308,8 @@ class Graph(object):
project = params['project']
message = params.get('message', '') if project == 'try' else DEFAULT_TRY
# Message would only be blank when not created from decision task
if project == 'try' and not message:
sys.stderr.write(
"Must supply commit message when creating try graph. " \
"Example: --message='try: -b do -p all -u all'"
)
sys.exit(1)
templates = Templates(ROOT)
job_path = os.path.join(ROOT, 'tasks', 'branches', project, 'job_flags.yml')
job_path = job_path if os.path.exists(job_path) else DEFAULT_JOB_PATH