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

Add explainer#863

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 3 commits intocodefresh-io:masterfromapanzerj:patch-1
Dec 11, 2023
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
20 changes: 18 additions & 2 deletions_docs/kb/articles/check-env-vars-in-conditionals.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,6 +15,21 @@ support-reviewed: 2023-04-18 LG

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


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.


The following condition:

{% raw %}

```yaml
'includes("${{CF_RELEASE_TAG}}", "{{CF_RELEASE_TAG}}") == true'
```
{% endraw %}

evaluates to `true` if `CF_RELEASE_TAG` does not exist, and `false` if it does exist.

## Details

1. Using the following syntax, you can check whether a variable exists for the current build:
Expand DownExpand Up@@ -45,6 +60,7 @@ You are trying to run a specific step only if a variable is set. You are trying

3. If desired, you can combine multiple checks.

## Related Items

[Conditional Execution of Steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)

## Related Items
[Conditional execution of steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)

[8]ページ先頭

©2009-2025 Movatter.jp