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

Commit5cfa0c0

Browse files
author
Lukas Goodfellow
authored
1 parentacb9fe0 commit5cfa0c0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎_docs/codefresh-yaml/hooks.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@ toc: true
77

88
Pipeline hooks allow you to run specific actions at the end and the beginning of the pipeline as well as before/after a step.
99

10-
##Pipeline hooks
11-
12-
Codefresh allows you to run a specific step before each pipeline as well as after it has finished. Each hook is similar to a[freestyle step]({{site.baseurl}}/docs/codefresh-yaml/steps/freestyle/) as you need to define:
10+
Hooks can be a[freestyle step]({{site.baseurl}}/docs/codefresh-yaml/steps/freestyle/) as you need to define:
1311

14-
1. A Docker image that will be used to run specific commands
12+
1. A Docker image that will be used to run specific commands.
1513
1. One or more commands to run within the context of that Docker image.
1614

1715
For simple commands we suggest you use a small image such as`alpine`, but any Docker image can be used in hooks.
1816

17+
Also, Hooks can use[steps/plugins](https://steps.codefresh.io) and need to define:
18+
19+
1. The type field for the step/plugin.
20+
1. The arguments needed for the step/plugin.
21+
22+
##Pipeline hooks
23+
24+
Codefresh allows you to run a specific step before each pipeline as well as after it has finished.
25+
1926
###Running a step at the end of the pipeline
2027

2128
You can easily run a step at the end of pipeline, that will execute even if one of the steps have failed (and thus the pipeline is stopped in middle):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp