Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2985)

Unified Diff: appengine/findit/common/waterfall/buildbucket_client.py

Issue 1991333002: [Findit] Send targeted_tests to try-job in build_parameter instend of build_property (Findit side). (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/findit/common/waterfall/test/buildbucket_client_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/common/waterfall/buildbucket_client.py
diff --git a/appengine/findit/common/waterfall/buildbucket_client.py b/appengine/findit/common/waterfall/buildbucket_client.py
index 48468968a46666686bac2cf839ddcfa320de9516..347bd8eba01e894e1dc9c5bf80e30b9b4ce75963 100644
--- a/appengine/findit/common/waterfall/buildbucket_client.py
+++ b/appengine/findit/common/waterfall/buildbucket_client.py
@@ -34,7 +34,9 @@ def _GetBucketName(master_name):
class TryJob(collections.namedtuple(
'TryJobNamedTuple',
- ('master_name', 'builder_name', 'revision', 'properties', 'tags'))):
+ ('master_name', 'builder_name', 'revision', 'properties', 'tags',
+ 'additional_build_parameters'))
+):
"""Represents a try-job to be triggered through Buildbucket.
Tag for "user_agent" should not be set, as it will be added automatically.
@@ -45,6 +47,9 @@ class TryJob(collections.namedtuple(
'builder_name': self.builder_name,
'properties': self.properties,
}
+ if self.additional_build_parameters:
+ parameters_json['additional_build_parameters'] = (
+ self.additional_build_parameters)
if self.revision:
parameters_json['changes'] = [
{
« no previous file with comments | « no previous file | appengine/findit/common/waterfall/test/buildbucket_client_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698