[vscode-concourse] Add team attribute to set_pipiline step
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2016, 2023 Pivotal, Inc.
|
* Copyright (c) 2016, 2024 Pivotal, Inc.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
@@ -406,6 +406,7 @@ public class PipelineYmlSchema implements YamlSchema {
|
|||||||
addProp(setPipelineStep, "instance_vars", t_params);
|
addProp(setPipelineStep, "instance_vars", t_params);
|
||||||
addProp(setPipelineStep, "vars", t_params);
|
addProp(setPipelineStep, "vars", t_params);
|
||||||
addProp(setPipelineStep, "var_files", t_strings);
|
addProp(setPipelineStep, "var_files", t_strings);
|
||||||
|
addProp(setPipelineStep, "team", t_ne_string);
|
||||||
|
|
||||||
YBeanType loadVarStep = f.ybean("LoadVarStep");
|
YBeanType loadVarStep = f.ybean("LoadVarStep");
|
||||||
addProp(loadVarStep, "load_var", t_identifier);
|
addProp(loadVarStep, "load_var", t_identifier);
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
*Optional* By default, the `set_pipeline` step sets the pipeline for the same **team** that is running the build.
|
||||||
|
|
||||||
|
The `team` attribute can be used to specify another team.
|
||||||
|
|
||||||
|
Only the `main` **team** is allowed to set another team's pipeline. Any `team` other than the `main` **team** using the team attribute will error, unless they reference their own team.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2016, 2023 Pivotal, Inc.
|
* Copyright (c) 2016, 2024 Pivotal, Inc.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
@@ -672,6 +672,7 @@ public class ConcourseEditorTest {
|
|||||||
" var_files:\n" +
|
" var_files:\n" +
|
||||||
" - my-repo/ci/dev.yml\n" +
|
" - my-repo/ci/dev.yml\n" +
|
||||||
" vars:\n" +
|
" vars:\n" +
|
||||||
|
" team: my-team\n" +
|
||||||
" text: \"Hello World!\"\n"
|
" text: \"Hello World!\"\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -679,6 +680,7 @@ public class ConcourseEditorTest {
|
|||||||
editor.assertHoverContains("instance_vars", "A map of instance vars used to identify");
|
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("var_files", "files that will be passed to the pipeline config in the same manner as the --load-vars-from flag");
|
||||||
editor.assertHoverContains("vars", 2, "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.");
|
||||||
|
editor.assertHoverContains("team", "By default, the `set_pipeline` step sets the pipeline for the same **team** that is running the build");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user