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

Commitbd476d3

Browse files
fix YAML spacing (codefresh-io#231)
1 parent2ac7aaf commitbd476d3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -943,22 +943,22 @@ For example, you can have a cleanup step that will run only if the workflow fail
943943
{% highlight yaml %}
944944
my_cleanup_step:
945945
title: My Pipeline Cleanup
946-
when:
947-
condition:
948-
all:
949-
myCondition: workflow.result == 'failure'
946+
when:
947+
condition:
948+
all:
949+
myCondition: workflow.result == 'failure'
950950
{% endhighlight %}
951951

952952
As another example we have a special step that will send an email if the pipeline succeeds or if load-tests fail:
953953

954954
{% highlight yaml %}
955955
my_email_step:
956956
title: My Email step
957-
when:
958-
condition:
959-
any:
960-
myCondition: workflow.result == 'success'
961-
myTestCondition: steps.MyLoadTesting.result == 'failure'
957+
when:
958+
condition:
959+
any:
960+
myCondition: workflow.result == 'success'
961+
myTestCondition: steps.MyLoadTesting.result == 'failure'
962962
{% endhighlight %}
963963

964964
Notice that both examples assume that`fail_fast: false` is at the root of the`codefresh.yaml` file.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp