| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Name of the builder. Will be propagated to "builder" build tag and | 54 // Name of the builder. Will be propagated to "builder" build tag and |
| 55 // "buildername" recipe property. | 55 // "buildername" recipe property. |
| 56 optional string name = 1; | 56 optional string name = 1; |
| 57 // Builder category. Will be used for visual grouping, for example in Code R
eview. | 57 // Builder category. Will be used for visual grouping, for example in Code R
eview. |
| 58 optional string category = 6; | 58 optional string category = 6; |
| 59 // Will be become to swarming task tags. | 59 // Will be become to swarming task tags. |
| 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 // |
| 65 // If value is not specified ("<key>:"), then it excludes a value for the |
| 66 // same key specified in common_dimensions. |
| 64 repeated string dimensions = 3; | 67 repeated string dimensions = 3; |
| 65 // Specifies that a recipe to run. | 68 // Specifies that a recipe to run. |
| 66 optional Recipe recipe = 4; | 69 optional Recipe recipe = 4; |
| 67 // Swarming task priority. | 70 // Swarming task priority. |
| 68 optional int32 priority = 5; | 71 optional int32 priority = 5; |
| 69 // Maximum build execution time. Not to be confused with pending time. | 72 // Maximum build execution time. Not to be confused with pending time. |
| 70 // If not set, defaults to bucket's common_execution_timeout_secs. | 73 // If not set, defaults to bucket's common_execution_timeout_secs. |
| 71 optional int32 execution_timeout_secs = 7; | 74 optional int32 execution_timeout_secs = 7; |
| 72 } | 75 } |
| 73 | 76 |
| 74 // Hostname of the swarming instance, e.g. "chromium-swarm.appspot.com". | 77 // Hostname of the swarming instance, e.g. "chromium-swarm.appspot.com". |
| 75 optional string hostname = 1; | 78 optional string hostname = 1; |
| 76 // Used to generate a URL for Build, may contain parameters | 79 // Used to generate a URL for Build, may contain parameters |
| 77 // {swarming_hostname}, {task_id}, {bucket} and {builder}. Defaults to: | 80 // {swarming_hostname}, {task_id}, {bucket} and {builder}. Defaults to: |
| 78 // https://{swarming_hostname}/user/task/{task_id} | 81 // https://{swarming_hostname}/user/task/{task_id} |
| 79 optional string url_format = 2; | 82 optional string url_format = 2; |
| 80 | 83 |
| 81 // Will be put to all swarming tasks. | 84 // Will be put to all swarming tasks. |
| 82 repeated string common_swarming_tags = 3; | 85 repeated string common_swarming_tags = 3; |
| 83 | 86 |
| 84 // Colon-delimited key-value pair of common task dimensions. | 87 // Colon-delimited key-value pair of common task dimensions. |
| 88 // |
| 89 // If value is not specified ("<key>:"), then it excludes a value for the |
| 90 // same key specified in swarming task template. |
| 85 repeated string common_dimensions = 4; | 91 repeated string common_dimensions = 4; |
| 86 | 92 |
| 87 // Configuration for each builder. | 93 // Configuration for each builder. |
| 88 // Swarming tasks are created only for builds for builders that are not | 94 // Swarming tasks are created only for builds for builders that are not |
| 89 // explicitly specified. | 95 // explicitly specified. |
| 90 repeated Builder builders = 5; | 96 repeated Builder builders = 5; |
| 91 | 97 |
| 92 // Defines a default recipe for all builders in this bucket. | 98 // Defines a default recipe for all builders in this bucket. |
| 93 // A builder may override it or parts of it with something else. | 99 // A builder may override it or parts of it with something else. |
| 94 optional Recipe common_recipe = 6; | 100 optional Recipe common_recipe = 6; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 108 repeated Acl acls = 2; | 114 repeated Acl acls = 2; |
| 109 // Buildbucket-swarming integration. | 115 // Buildbucket-swarming integration. |
| 110 optional Swarming swarming = 3; | 116 optional Swarming swarming = 3; |
| 111 } | 117 } |
| 112 | 118 |
| 113 // Schema of buildbucket.cfg file, a project config. | 119 // Schema of buildbucket.cfg file, a project config. |
| 114 message BuildbucketCfg { | 120 message BuildbucketCfg { |
| 115 // All buckets defined for this project. | 121 // All buckets defined for this project. |
| 116 repeated Bucket buckets = 1; | 122 repeated Bucket buckets = 1; |
| 117 } | 123 } |
| OLD | NEW |