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

Commit3cdc793

Browse files
apanzerjNimRegev
andauthored
Add explainer (#863)
* Add explainer* Update check-env-vars-in-conditionals.md* Update check-env-vars-in-conditionals.mdMoved explanation to overview and edited content---------Co-authored-by: NimRegev <nima.regev@codefresh.io>
1 parentbb959dc commit3cdc793

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

‎_docs/kb/articles/check-env-vars-in-conditionals.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ support-reviewed: 2023-04-18 LG
1515

1616
You are trying to run a specific step only if a variable is set. You are trying to have branching logic in one pipeline.
1717

18+
19+
This condition determines how values are substituted for variables, when and if referenced variables do not exist in the pipeline definitions. In such cases, Codefresh retains the variable name string as-is, without substituting it with a value.
20+
21+
22+
The following condition:
23+
24+
{% raw %}
25+
26+
```yaml
27+
'includes("${{CF_RELEASE_TAG}}", "{{CF_RELEASE_TAG}}") == true'
28+
```
29+
{% endraw %}
30+
31+
evaluates to`true` if`CF_RELEASE_TAG` does not exist, and`false` if it does exist.
32+
1833
##Details
1934

2035
1. Using the following syntax, you can check whether a variable exists for the current build:
@@ -45,6 +60,7 @@ You are trying to run a specific step only if a variable is set. You are trying
4560
4661
3. If desired, you can combine multiple checks.
4762
48-
## Related Items
4963
50-
[Conditional Execution of Steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)
64+
65+
## Related Items
66+
[Conditional execution of steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp