Support (CA/hover/reconcile) for task.run sub-properties
This commit is contained in:
@@ -173,8 +173,11 @@ public class PipelineYmlSchema implements YamlSchema {
|
||||
f.yprop("path", t_ne_string)
|
||||
);
|
||||
|
||||
YType t_command = f.yany("Command");
|
||||
//TODO: add structure for command.
|
||||
YBeanType t_command = f.ybean("Command");
|
||||
addProp(t_command, "path", t_ne_string).isRequired(true);
|
||||
addProp(t_command, "args", t_strings);
|
||||
addProp(t_command, "dir", t_ne_string);
|
||||
addProp(t_command, "user", t_string);
|
||||
|
||||
task = f.ybean("TaskConfig");
|
||||
addProp(task, "platform", t_platform).isRequired(true);
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
*Optional.* Arguments to pass to the command. Note that when executed with `fly`, any arguments passed to `fly` are appended to this array.
|
||||
@@ -0,0 +1 @@
|
||||
*Optional.* A directory, relative to the initial working directory, to set as the working directory when running the script.
|
||||
@@ -0,0 +1 @@
|
||||
*Required.* The command to execute, relative to the task's working directory. For a script living in a resource's repo, you must specify the full path to the resource, i.e. `my-resource/scripts/test`.
|
||||
@@ -0,0 +1 @@
|
||||
*Optional.* Explicitly set the user to run as. If not specified, this defaults to the user configured by the task's image. If not specified there, it's up to the Garden backend, and may be e.g. `root` on Linux.
|
||||
Reference in New Issue
Block a user