Skip to content

Commit 9138e64

Browse files
authored
Update variables.md (#1279)
* Update variables.md Added note on cf_export behavior for existing variables prior to cf_export introduction * Update variables.md * Update variables.md Commented out information about cf_export using command to see contents * Update variables.md
1 parent d802b8a commit 9138e64

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_docs/pipelines/variables.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,11 @@ There are two ways to add variables to the shared file:
439439
Within every freestyle step, the `cf_export` command allows you to export variables across steps by writing to the shared variables file.
440440

441441
> **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"}.
443445

444446
You can either:
445-
446447
* Explicitly state a VAR=VAL pair
447448
* State the name of an existing *exported* environment variable, for example, `EXISTING_VAR`
448449

@@ -481,7 +482,7 @@ export MY_VAR='example' # Makes MY_VAR available in this step only
481482
cf_export MY_VAR='example' # Makes MY_VAR available also to all steps after this one
482483
```
483484

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. -->
485486

486487
#### `cf_export` syntax
487488

0 commit comments

Comments
 (0)