Concourse: basic support for 'tags' attribute

This commit is contained in:
Kris De Volder
2016-12-21 11:38:52 -08:00
parent 121c8a7c72
commit 50cc31f149
3 changed files with 23 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ public class PipelineYmlSchema implements YamlSchema {
prop(step, "on_failure", step);
prop(step, "ensure", step);
prop(step, "attempts", t_strictly_pos_integer);
prop(step, "tags", t_strings);
YBeanType resource = f.ybean("Resource");
prop(resource, "name", t_ne_string);

View File

@@ -0,0 +1,9 @@
Perform a step on certain workers.
Any step can be directed at a pool of workers for a given set of tags, by adding the `tags` attribute to it.
tags: [string]
*Optional. Default* `[]`. The tags by which to match workers.
For example, if `[a, b]` is specified, only workers advertising the `a` and `b` tags (or any others) will be used for running the step.