OLD | NEW |
1 // Copyright 2015 The Swarming Authors. All rights reserved. | 1 // Copyright 2015 The Swarming Authors. All rights reserved. |
2 // Use of this source code is governed by the Apache v2.0 license that can be | 2 // Use of this source code is governed by the Apache v2.0 license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Schemas for project configs. | 5 // Schemas for project configs. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 package buildbucket; | 9 package buildbucket; |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Each tag will end up in "swarming_tag" buildbucket tag, for example | 60 // Each tag will end up in "swarming_tag" buildbucket tag, for example |
61 // "swarming_tag:builder:release" | 61 // "swarming_tag:builder:release" |
62 repeated string swarming_tags = 2; | 62 repeated string swarming_tags = 2; |
63 // Colon-delimited key-value pair of task dimensions. | 63 // Colon-delimited key-value pair of task dimensions. |
64 repeated string dimensions = 3; | 64 repeated string dimensions = 3; |
65 // Specifies that a recipe to run. | 65 // Specifies that a recipe to run. |
66 optional Recipe recipe = 4; | 66 optional Recipe recipe = 4; |
67 // Swarming task priority. | 67 // Swarming task priority. |
68 optional int32 priority = 5; | 68 optional int32 priority = 5; |
69 // Maximum build execution time. Not to be confused with pending time. | 69 // Maximum build execution time. Not to be confused with pending time. |
70 // If not set, defaults to server defaults. | 70 // If not set, defaults to bucket's common_execution_timeout_secs. |
71 optional int32 execution_timeout_secs = 7; | 71 optional int32 execution_timeout_secs = 7; |
72 } | 72 } |
73 | 73 |
74 // Hostname of the swarming instance, e.g. "chromium-swarm.appspot.com". | 74 // Hostname of the swarming instance, e.g. "chromium-swarm.appspot.com". |
75 optional string hostname = 1; | 75 optional string hostname = 1; |
76 // Used to generate a URL for Build, may contain parameters | 76 // Used to generate a URL for Build, may contain parameters |
77 // {swarming_hostname}, {task_id}, {bucket} and {builder}. Defaults to: | 77 // {swarming_hostname}, {task_id}, {bucket} and {builder}. Defaults to: |
78 // https://{swarming_hostname}/user/task/{task_id} | 78 // https://{swarming_hostname}/user/task/{task_id} |
79 optional string url_format = 2; | 79 optional string url_format = 2; |
80 | 80 |
81 // Will be put to all swarming tasks. | 81 // Will be put to all swarming tasks. |
82 repeated string common_swarming_tags = 3; | 82 repeated string common_swarming_tags = 3; |
83 | 83 |
84 // Colon-delimited key-value pair of common task dimensions. | 84 // Colon-delimited key-value pair of common task dimensions. |
85 repeated string common_dimensions = 4; | 85 repeated string common_dimensions = 4; |
86 | 86 |
87 // Configuration for each builder. | 87 // Configuration for each builder. |
88 // Swarming tasks are created only for builds for builders that are not | 88 // Swarming tasks are created only for builds for builders that are not |
89 // explicitly specified. | 89 // explicitly specified. |
90 repeated Builder builders = 5; | 90 repeated Builder builders = 5; |
91 | 91 |
92 // Defines a default recipe for all builders in this bucket. | 92 // Defines a default recipe for all builders in this bucket. |
93 // A builder may override it or parts of it with something else. | 93 // A builder may override it or parts of it with something else. |
94 optional Recipe common_recipe = 6; | 94 optional Recipe common_recipe = 6; |
| 95 |
| 96 // Maximum build execution time. Not to be confused with pending time. |
| 97 // If not set, defaults to server defaults. |
| 98 optional int32 common_execution_timeout_secs = 7; |
95 } | 99 } |
96 | 100 |
97 // Defines one bucket in buildbucket.cfg | 101 // Defines one bucket in buildbucket.cfg |
98 message Bucket { | 102 message Bucket { |
99 // Name of the bucket. Names are unique within one instance of buildbucket. | 103 // Name of the bucket. Names are unique within one instance of buildbucket. |
100 // If another project already uses this name, a config will be rejected. | 104 // If another project already uses this name, a config will be rejected. |
101 // Name reservation is first-come first-serve. | 105 // Name reservation is first-come first-serve. |
102 optional string name = 1; | 106 optional string name = 1; |
103 // List of access control rules for the bucket. | 107 // List of access control rules for the bucket. |
104 repeated Acl acls = 2; | 108 repeated Acl acls = 2; |
105 // Buildbucket-swarming integration. | 109 // Buildbucket-swarming integration. |
106 optional Swarming swarming = 3; | 110 optional Swarming swarming = 3; |
107 } | 111 } |
108 | 112 |
109 // Schema of buildbucket.cfg file, a project config. | 113 // Schema of buildbucket.cfg file, a project config. |
110 message BuildbucketCfg { | 114 message BuildbucketCfg { |
111 // All buckets defined for this project. | 115 // All buckets defined for this project. |
112 repeated Bucket buckets = 1; | 116 repeated Bucket buckets = 1; |
113 } | 117 } |
OLD | NEW |