Skip to content

Commit 9beb7bb

Browse files
authored
Merge pull request buildkite#1756 from buildkite/agent-hooks-plugin-vendored-non-vendored
agent hooks: use “Plugin” and “Plugin (vendored)”
2 parents 8c75f76 + 6e34a44 commit 9beb7bb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pages/agent/v3/hooks.md.erb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ 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> | 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. |
128-
| `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 |
129-
| `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. |
130-
| `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. |
131-
| `pre-artifact` | <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 artifacts are uploaded, if an artifact upload pattern was defined for the job. |
132-
| `post-artifact` | <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 artifacts have been uploaded, if an artifact upload pattern was defined for the job. |
133-
| `pre-exit` | <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 job finishes. Useful for performing cleanup tasks. |
123+
| `environment` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</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">Plugin (non-vendored)</span> | Runs before checkout. |
125+
| `checkout` | <span class="add-icon-plugin">Plugin (non-vendored)</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">Plugin (non-vendored)</span> | Runs after checkout. |
127+
| `environment` | <span class="add-icon-plugin">Plugin (vendored)</span> | Unlike other plugins, environment hooks for vendored plugins run after checkout. |
128+
| `pre-command` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</span> | Runs before the build command |
129+
| `command` | <span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</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. |
130+
| `post-command` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</span> | Runs after the command. |
131+
| `pre-artifact` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</span> | Runs before artifacts are uploaded, if an artifact upload pattern was defined for the job. |
132+
| `post-artifact` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</span> | Runs after artifacts have been uploaded, if an artifact upload pattern was defined for the job. |
133+
| `pre-exit` | <span class="add-icon-agent">Agent</span><br /><span class="add-icon-repository">Repository</span><br /><span class="add-icon-plugin">Plugin (non-vendored)</span><br /><span class="add-icon-plugin">Plugin (vendored)</span> | Runs before the job finishes. Useful for performing cleanup tasks. |
134134
{: class="table table--no-wrap"}
135135

136136
### Creating job lifecycle hooks

0 commit comments

Comments
 (0)