Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update variables.md#1279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NimRegev merged 4 commits intomasterfromclassic-cf-export-behavior
Apr 22, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions_docs/pipelines/variables.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -439,10 +439,11 @@ There are two ways to add variables to the shared file:
Within every freestyle step, the `cf_export` command allows you to export variables across steps by writing to the shared variables file.

> **NOTE**
> Variables exported through `cf_export` override those at the pipeline-level.
> As a rule, variables exported through `cf_export` override those at the pipeline-level.
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.
To verify the behavior, and enable `cf_export` override for variables if needed, please contact [Support](mailto:support@codefresh.io){:target="\_blank"}.

You can either:

* Explicitly state a VAR=VAL pair
* State the name of an existing *exported* environment variable, for example, `EXISTING_VAR`

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

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

#### `cf_export` syntax

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp