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

Commit10e4415

Browse files
fixed errors in steps result property examples (codefresh-io#377)
* fixed errors in steps result property examplesFixed code examples for conditional checks on steps.stepname.status, which included invalid states "error" and "finished". Added note for "finished" status.* link formatting
1 parent99cedfd commit10e4415

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎_docs/codefresh-yaml/advanced-workflows.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ You can now add extra conditions regarding the completion state of specific step
830830
* Pending
831831
* Running
832832

833-
Finished is a shorthand for`success` or`failure` or`skipped`.
833+
Finished is a shorthand for`success` or`failure` or`skipped`. It is only valid when used in[step dependencies]({{site.baseurl}}/docs/codefresh-yaml/advanced-workflows/#single-step-dependencies), and cannot be used in custom conditions.
834+
834835
You can mix and match completion states from any other step in your pipeline. Here are some examples:
835836

836837
{% highlight yaml %}
@@ -839,7 +840,7 @@ my_step:
839840
when:
840841
condition:
841842
all:
842-
myCondition: steps.MyUnitTests.result == 'error' || steps.MyIntegrationTests.result == 'error'
843+
myCondition: steps.MyUnitTests.result == 'failure' || steps.MyIntegrationTests.result == 'failure'
843844
{% endhighlight %}
844845

845846
{% highlight yaml %}
@@ -849,7 +850,7 @@ my_step:
849850
condition:
850851
any:
851852
myCondition: steps.MyLoadTesting.result == 'success'
852-
myOtherCondition: steps.MyCleanupStep.result == 'finished'
853+
myOtherCondition: steps.MyCleanupStep.result == 'success'
853854
{% endhighlight %}
854855

855856
You can also use conditions in the success criteria for a parallel step. Here is an example

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp