Skip to content

Commit ae20d0e

Browse files
committed
Fix table for plugin hooks to show vendored plugins don't run until after checkout
1 parent 384ce2a commit ae20d0e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pages/agent/v3/hooks.md.erb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ they are run as part of each job:
120120

121121
| Hook | Location Order | Description |
122122
| --------------- | -------------- | ----------- |
123-
| `environment` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span> | Runs before all other hooks. Useful for [exporting secret keys](/docs/pipelines/secrets#exporting-secrets-with-environment-hooks). |
124-
| `pre-checkout` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span> | Runs before checkout. |
125-
| `checkout` | <span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span><br /><span class="add-icon-agent">Agent</span> | Overrides the default git checkout behavior.<br>*Note:* As of Agent v3.15.0, if multiple checkout hooks are found, only the first will be run. |
126-
| `post-checkout` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span> | Runs after checkout. |
123+
| `environment` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-plugin">Non-vendored plugin</span> | Runs before all other hooks. Useful for [exporting secret keys](/docs/pipelines/secrets#exporting-secrets-with-environment-hooks). |
124+
| `pre-checkout` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-plugin">Non-vendored plugin</span> | Runs before checkout. |
125+
| `checkout` | <span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-agent">Agent</span> | Overrides the default git checkout behavior.<br>*Note:* As of Agent v3.15.0, if multiple checkout hooks are found, only the first will be run. |
126+
| `post-checkout` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Non-vendored plugin</span> | Runs after checkout. |
127+
| `environment` | <span class="add-icon-plugin">Vendored plugin</span> | Unlike other plugins, environment hooks for vendored plugins run after checkout. |
127128
| `pre-command` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span> | Runs before the build command |
128129
| `command` | <span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-agent">Agent</span> | Overrides the default command running behavior. If multiple command hooks are found, only the first will be run. |
129130
| `post-command` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Non-vendored plugin</span><br /><span class="add-icon-plugin">Vendored plugin</span> | Runs after the command. |

0 commit comments

Comments
 (0)