You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/codefresh-yaml/post-step-operations.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ redirect_from:
6
6
-/docs/post-step-operations/
7
7
toc:true
8
8
---
9
-
Post-step operations are a set of optional predefined processes that can be configured on any step. These operations will be executed once the step has completed. The post-step operations allow you to annotate your builds, images and pipelines with extra metadata.
9
+
Post-step operations are a set of optional predefined processes that can be configured on any step. These operations will be executed once the step has completed. The post-step operations allow you to annotate your builds, images and pipelines with extra metadata or run other steps.
Post operations are only for metadata. If you want to run a step when another step fails or succeeds you need to use[conditional execution of steps]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/) and the`fail_fast` property.
82
+
Post operations are only for metadata. If you want to run a step when another step fails or succeeds you need to use[conditional execution of steps]({{site.baseurl}}/docs/codefresh-yaml/conditional-execution-of-steps/) and the`fail_fast` property or[step hooks]({{site.baseurl}}/docs/codefresh-yaml/hooks/)
82
83
83
84
{% highlight yaml %}
84
85
{% raw %}
@@ -103,7 +104,7 @@ print_error_message:
103
104
104
105
In this example the step`print_error_message` will only run if step`run_tests` has failed.
105
106
106
-
See also[advanced workflows]({{site.baseurl}}/docs/codefresh-yaml/advanced-workflows/#single-step-dependencies).
107
+
See also[advanced workflows]({{site.baseurl}}/docs/codefresh-yaml/advanced-workflows/#single-step-dependencies) and[Pipeline/Step hooks]({{site.baseurl}}/docs/codefresh-yaml/hooks/).