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

Commitea28d85

Browse files
Clarify cf_export
1 parent5eed775 commitea28d85

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎_docs/codefresh-yaml/variables.md‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,23 @@ steps:
247247
{% endraw %}
248248
{% endhighlight %}
249249

250-
Notice that`cf_export` has the samesemantics as the[bash export command](https://www.gnu.org/software/bash/manual/html_node/Environment.html). This means that when you use it you**don't** need any dollar signs for the variable created/assigned.
250+
Notice that`cf_export` has the samesyntax structure as the[bash export command](https://www.gnu.org/software/bash/manual/html_node/Environment.html). This means that when you use it you**don't** need any dollar signs for the variable created/assigned.
251251

252252
```
253253
cf_export $MY_VAR # Don't do this
254254
cf_export MY_VAR # Correct syntax
255255
```
256256

257-
>There is nothing really magic 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/codefresh-yaml/steps/freestyle/) inside a pipeline. For more information on its limitations see the[troubleshooting page]({{site.baseurl}}/docs/troubleshooting/common-issues/cf-export-limitations/).
257+
Also notice that`cf_export` works on*subsequent* steps only. If you want to export a variable right away in the present step and all the rest of the steps you need to do the following:
258+
259+
```
260+
export MY_VAR='example' # Will make MY_VAR available in this step only
261+
cf_export MY_VAR='example' # Will also make MY_VAR available to all steps after this one
262+
```
263+
264+
There is nothing really magic 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/codefresh-yaml/steps/freestyle/) inside a pipeline.
265+
266+
For more information on its limitations see the[troubleshooting page]({{site.baseurl}}/docs/troubleshooting/common-issues/cf-export-limitations/).
258267

259268

260269

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp