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

Commit9d83b9f

Browse files
author
Lukas Goodfellow
authored
add using plugins in hooks example (codefresh-io#379)
1 parent60661c8 commit9d83b9f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎_docs/codefresh-yaml/hooks.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,22 @@ steps:
597597
{% endraw %}
598598
{% endhighlight %}
599599

600+
##Using Type Steps / Plugins in hooks
601+
602+
You can use a type step / plugins in hooks. With this you will need to change`exec` into`steps` with the information needed for the step.
603+
604+
Below is an example pipeline hook using the`slack-notifier` step/plugin for when the pipeline starts.
605+
606+
```yaml
607+
hooks:
608+
on_elected:
609+
steps:
610+
slack_pending:
611+
type:slack-notifier
612+
arguments:
613+
SLACK_HOOK_URL:{% raw %}'${{SLACK_WEBHOOK_URL}}'{% endraw %}
614+
SLACK_TEXT:'*Build Started* :crossed_fingers:'
615+
```
600616
601617
## Limitations of pipeline/step hooks
602618

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp