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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -978,6 +978,8 @@ You can still use `cf_export` command inside the plugin as well (as shown in the
978
978
979
979
As an advanced technique, Codefresh allows you to define a custom step using templating instead of fixed YAML. We support templates inside the`spec:` block of a plugin definition by taking advantage of the[Gomplate](https://github.com/hairyhenderson/gomplate) library that offers additional templating functions on top of vanilla[Go templates](https://golang.org/pkg/text/template/).
980
980
981
+
>Note: Gomplate Data functions will not work since Codefresh does not pass the Data object to gomplate functions.
982
+
981
983
As a simple example lets say we want to create a single step that checks out any number of git repositories. Of course you could just copy-paste the git clone step multiple times in a single pipeline. To make things easier we will create a single step that takes an array of git repositories and checks them out on its own: