Allow properties to be overridden in buildbucket tries.

BUG=488235
PRESUBMIT=false
R=nodir@chromium.org

Review URL: https://codereview.chromium.org/1143573002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295275 0039d316-1c4b-4281-b951-d872f2087c98
parent 6ebaf782
......@@ -222,7 +222,8 @@ def _prefix_master(master):
return '%s%s' % (prefix, master)
def trigger_try_jobs(auth_config, changelist, options, masters, category):
def trigger_try_jobs(auth_config, changelist, options, masters, category,
override_properties=None):
rietveld_url = settings.GetDefaultServerUrl()
rietveld_host = urlparse.urlparse(rietveld_url).hostname
authenticator = auth.get_authenticator_for_host(rietveld_host, auth_config)
......@@ -266,6 +267,8 @@ def trigger_try_jobs(auth_config, changelist, options, masters, category):
'testfilter': tests,
},
}
if override_properties:
parameters['properties'].update(override_properties)
if options.clobber:
parameters['properties']['clobber'] = True
batch_req_body['builds'].append(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment