You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/steps.md
+56-4Lines changed: 56 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -951,23 +951,75 @@ This was a trivial example, but it clearly demonstrates how a custom step commun
951
951
952
952
###Exporting parameters manually inside a plugin
953
953
954
-
Normally in a pipeline you can either use the[cf_export]({{site.baseurl}}/docs/codefresh-yaml/variables/#using-cf_export-command) command or write directly to the[/codefresh/volume/env_vars_to_export]({{site.baseurl}}/docs/codefresh-yaml/variables/#directly-writing-to-the-file) file.
954
+
Normally, in a pipeline you can either use the[cf_export]({{site.baseurl}}/docs/codefresh-yaml/variables/#using-cf_export-command) command or write directly to the[/codefresh/volume/env_vars_to_export]({{site.baseurl}}/docs/codefresh-yaml/variables/#directly-writing-to-the-file) file.
955
955
956
-
However inside a plugin you can also use the`/meta/env_vars_to_export` file that has the same semantics, but is used for exporting variables in the same scope as the plugin only.
956
+
However, inside a plugin you can also use the`/meta/env_vars_to_export` file that has the same semantics, but is used for exporting variables in the same scope as the plugin only.
957
957
958
+
The rules for using`/meta/env_vars_to_export` are:
959
+
- When the step-type (plugin) does not define the`return` schema, all the output variables from substeps will be projected and exported as the root step (they may override each other).
960
+
- When`return` schema is defined, only the variables that matched the definition will be exported as root step.