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
* Update variables.mdAdded note on cf_export behavior for existing variables prior to cf_export introduction* Update variables.md* Update variables.mdCommented out information about cf_export using command to see contents* Update variables.md
Copy file name to clipboardExpand all lines: _docs/pipelines/variables.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -439,10 +439,11 @@ There are two ways to add variables to the shared file:
439
439
Within every freestyle step, the `cf_export` command allows you to export variables across steps by writing to the shared variables file.
440
440
441
441
> **NOTE**
442
-
> Variables exported through `cf_export` override those at the pipeline-level.
442
+
> As a rule, variables exported through `cf_export` override those at the pipeline-level.
443
+
Depending on when your account was created, existing variables may not inherit the default override behavior. For example, `cf_export` may not override pipeline variables referenced outside of command blocks, such as in step arguments or step conditional expressions.
444
+
To verify the behavior, and enable `cf_export` override for variables if needed, please contact [Support](mailto:support@codefresh.io){:target="\_blank"}.
443
445
444
446
You can either:
445
-
446
447
* Explicitly state a VAR=VAL pair
447
448
* State the name of an existing *exported* environment variable, for example, `EXISTING_VAR`
448
449
@@ -481,7 +482,7 @@ export MY_VAR='example' # Makes MY_VAR available in this step only
481
482
cf_export MY_VAR='example' # Makes MY_VAR available also to all steps after this one
482
483
```
483
484
484
-
There is nothing really magical about `cf_export`. It is a normal script. You can see its contents on your own by entering the command `cat /codefresh/volume/cf_export` on any [Codefresh freestyle step]({{site.baseurl}}/docs/pipelines/steps/freestyle/) inside a pipeline.
485
+
<!---There is nothing really magical about `cf_export`. It is a normal script. You can see its contents on your own by entering the command `cat /codefresh/volume/cf_export` on any [Codefresh freestyle step]({{site.baseurl}}/docs/pipelines/steps/freestyle/) inside a pipeline. -->