Bug 1410137: Pass commit message to all mozharness builders on all try branches; r=dustin

MozReview-Commit-ID: IXEChll4kKC

--HG--
extra : rebase_source : bfc14082c5b316db605f3ac07d7e2f4c2257844c
extra : source : 236c4a3996d90a044cd05509fcaebe54c5e62509
This commit is contained in:
Tom Prince 2017-10-18 20:20:33 -06:00
parent b6274da28b
commit 28f75d1d59
2 changed files with 8 additions and 2 deletions

View File

@ -148,6 +148,9 @@ def mozharness_on_docker_worker_setup(config, job, taskdesc):
if 'job-script' in run:
env['JOB_SCRIPT'] = run['job-script']
if 'try' in config.params['project']:
env['TRY_COMMIT_MSG'] = config.params['message']
# if we're not keeping artifacts, set some env variables to empty values
# that will cause the build process to skip copying the results to the
# artifacts directory. This will have no effect for operations that are
@ -220,6 +223,9 @@ def mozharness_on_generic_worker(config, job, taskdesc):
if run['use-simple-package']:
env.update({'MOZ_SIMPLE_PACKAGE_NAME': 'target'})
if 'try' in config.params['project']:
env['TRY_COMMIT_MSG'] = config.params['message']
if not job['attributes']['build_platform'].startswith('win'):
raise Exception(
"Task generation for mozharness build jobs currently only supported on Windows"

View File

@ -145,7 +145,7 @@ def mozharness_test_on_docker(config, job, taskdesc):
if 'actions' in mozharness:
env['MOZHARNESS_ACTIONS'] = ' '.join(mozharness['actions'])
if config.params['project'] == 'try':
if 'try' in config.params['project']:
env['TRY_COMMIT_MSG'] = config.params['message']
# handle some of the mozharness-specific options
@ -313,7 +313,7 @@ def mozharness_test_on_generic_worker(config, job, taskdesc):
if isinstance(c, basestring) and c.startswith('--test-suite'):
mh_command[i] += suffix
if config.params['project'] == 'try':
if 'try' in config.params['project']:
env['TRY_COMMIT_MSG'] = config.params['message']
worker['mounts'] = [{