Concourse add instance_vars to SetPipelineStep
This commit is contained in:
@@ -402,6 +402,7 @@ public class PipelineYmlSchema implements YamlSchema {
|
||||
YBeanType setPipelineStep = f.ybean("SetPipelineStep");
|
||||
addProp(setPipelineStep, "set_pipeline", t_ne_string);
|
||||
addProp(setPipelineStep, "file", t_ne_string).isRequired(true);
|
||||
addProp(setPipelineStep, "instance_vars", t_params);
|
||||
addProp(setPipelineStep, "vars", t_params);
|
||||
addProp(setPipelineStep, "var_files", t_strings);
|
||||
|
||||
@@ -541,7 +542,7 @@ public class PipelineYmlSchema implements YamlSchema {
|
||||
return ssmConfig;
|
||||
case "dummy":
|
||||
YBeanType dummyConfig = f.ybean("DummyConfig");
|
||||
addProp(dummyConfig, "vars", t_any).isPrimary(true);
|
||||
addProp(dummyConfig, "vars", t_params).isPrimary(true);
|
||||
return dummyConfig;
|
||||
case "secretmanager":
|
||||
YBeanType smcConfig = f.ybean("SecretManagerConfig");
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
*Optional.* A map of instance vars used to identify [instanced pipelines](https://concourse-ci.org/instanced-pipelines.html). These vars will also be [interpolated into the pipeline config](https://concourse-ci.org/setting-pipelines.html#pipeline-static-vars).
|
||||
|
||||
Note that variables set with this field will not propagate to tasks configured via [task step file](https://concourse-ci.org/task-step.html#schema.task.file). If you want those variables to be determined at the time the pipeline is set, use [task step vars](https://concourse-ci.org/task-step.html#schema.task.vars) as well.
|
||||
|
||||
[Instance pipelines](https://concourse-ci.org/instanced-pipelines.html) are experimental and need to be enabled by setting the `--enable-pipeline-instances` flag on the [web node](https://concourse-ci.org/concourse-web.html).
|
||||
@@ -668,6 +668,7 @@ public class ConcourseEditorTest {
|
||||
" - get: my-repo\n" +
|
||||
" - set_pipeline: configure-the-pipeline\n" +
|
||||
" file: my-repo/ci/pipeline.yml\n" +
|
||||
" instance_vars:\n" +
|
||||
" var_files:\n" +
|
||||
" - my-repo/ci/dev.yml\n" +
|
||||
" vars:\n" +
|
||||
@@ -675,8 +676,9 @@ public class ConcourseEditorTest {
|
||||
);
|
||||
|
||||
editor.assertHoverContains("file", "The path to the pipeline's configuration file.");
|
||||
editor.assertHoverContains("instance_vars", "A map of instance vars used to identify");
|
||||
editor.assertHoverContains("var_files", "files that will be passed to the pipeline config in the same manner as the --load-vars-from flag");
|
||||
editor.assertHoverContains("vars", "A map of template variables to pass to the pipeline config.");
|
||||
editor.assertHoverContains("vars", 2, "A map of template variables to pass to the pipeline config.");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -6879,7 +6881,8 @@ public class ConcourseEditorTest {
|
||||
"- name: sts4\n" +
|
||||
" type: dummy\n" +
|
||||
" config:\n" +
|
||||
" vars: east\n"
|
||||
" vars:\n" +
|
||||
" k1: v1\n"
|
||||
);
|
||||
|
||||
editor.assertProblems();
|
||||
|
||||
Reference in New Issue
Block a user