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: data/content/agent_attributes.yaml
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,25 @@ attributes:
4
4
default_value: None
5
5
required: true
6
6
desc: |
7
-
The agent registration token from your organization’s _Agents_ page, used only to register new agents. To get your token, log in to Buildkite, navigate to _Agents_, then select _Reveal Agent Token_.
8
-
- name: bootstrap-script
9
-
env_var: BUILDKITE_BOOTSTRAP_SCRIPT_PATH
10
-
default_value: "buildkite-agent bootstrap"
11
-
required: false
12
-
desc: |
13
-
Command to invoke the bootstrap process.
7
+
The agent registration token from your organization's _Agents_ page, used only to register new agents. To get your token, log in to Buildkite, navigate to _Agents_, then select _Reveal Agent Token_.
14
8
- name: build-path
15
9
env_var: BUILDKITE_BUILD_PATH
16
10
default_value: "(depends on platform)"
17
11
required: true
18
12
desc: |
19
13
Path to where the builds will run from.
14
+
- name: allowed-repositories
15
+
env_var: BUILDKITE_ALLOWED_REPOSITORIES
16
+
default_value: ""
17
+
required: false
18
+
desc: |
19
+
A comma-separated list of regular expressions representing repositories the agent is allowed to clone (for example, `^git@github.com:buildkite/.\*` or `^https://github.com/buildkite/.*`)
20
+
- name: bootstrap-script
21
+
env_var: BUILDKITE_BOOTSTRAP_SCRIPT_PATH
22
+
default_value: "buildkite-agent bootstrap"
23
+
required: false
24
+
desc: |
25
+
Command to invoke the bootstrap process.
20
26
- name: cancel-grace-period
21
27
env_var: BUILDKITE_CANCEL_GRACE_PERIOD
22
28
default_value: "10"
@@ -204,7 +210,7 @@ attributes:
204
210
desc: |
205
211
Do not allow this agent to run arbitrary console commands.
$ buildkite-agent annotate ":one-does-not-simply: Green builds are coming." --style "success"
50
49
```
51
50
52
51
### Options
@@ -57,6 +56,7 @@ $ buildkite-agent annotate ":one-does-not-simply: Green builds are coming." --st
57
56
<trid="context"><th><code>--context value</code> <aclass="Docs__attribute__link"href="#context">#</a></th><td><p>The context of the annotation used to differentiate this annotation from others<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_CONTEXT</code></p></td></tr>
58
57
<trid="style"><th><code>--style value</code> <aclass="Docs__attribute__link"href="#style">#</a></th><td><p>The style of the annotation (`success`, `info`, `warning` or `error`)<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_STYLE</code></p></td></tr>
59
58
<trid="append"><th><code>--append </code> <aclass="Docs__attribute__link"href="#append">#</a></th><td><p>Append to the body of an existing annotation<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_APPEND</code></p></td></tr>
59
+
<trid="priority"><th><code>--priority value</code> <aclass="Docs__attribute__link"href="#priority">#</a></th><td><p>Priority of the annotation (1 to 10). By default annotations have a priority of 3. Annotations with a priority of 10 will be shown first, and annotations with a priority of 1 will be shown last. (default: 0)<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_PRIORITY</code></p></td></tr>
60
60
<trid="job"><th><code>--job value</code> <aclass="Docs__attribute__link"href="#job">#</a></th><td><p>Which job should the annotation come from<br /><strong>Environment variable</strong>: <code>$BUILDKITE_JOB_ID</code></p></td></tr>
61
61
<trid="agent-access-token"><th><code>--agent-access-token value</code> <aclass="Docs__attribute__link"href="#agent-access-token">#</a></th><td><p>The access token used to identify the agent<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_ACCESS_TOKEN</code></p></td></tr>
<trid="tracing-backend"><th><code>--tracing-backend value</code> <aclass="Docs__attribute__link"href="#tracing-backend">#</a></th><td><p>The name of the tracing backend to use.<br /><strong>Environment variable</strong>: <code>$BUILDKITE_TRACING_BACKEND</code></p></td></tr>
95
95
<trid="tracing-service-name"><th><code>--tracing-service-name value</code> <aclass="Docs__attribute__link"href="#tracing-service-name">#</a></th><td><p>Service name to use when reporting traces. (default: "buildkite-agent")<br /><strong>Environment variable</strong>: <code>$BUILDKITE_TRACING_SERVICE_NAME</code></p></td></tr>
96
+
<trid="no-job-api"><th><code>--no-job-api </code> <aclass="Docs__attribute__link"href="#no-job-api">#</a></th><td><p>Disables the Job API, which gives commands in jobs some abilities to introspect and mutate the state of the job.<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_NO_JOB_API</code></p></td></tr>
96
97
<trid="debug"><th><code>--debug </code> <aclass="Docs__attribute__link"href="#debug">#</a></th><td><p>Enable debug mode. Synonym for `--log-level debug`. Takes precedence over `--log-level`<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_DEBUG</code></p></td></tr>
97
98
<trid="log-level"><th><code>--log-level value</code> <aclass="Docs__attribute__link"href="#log-level">#</a></th><td><p>Set the log level for the agent, making logging more or less verbose. Defaults to notice. Allowed values are: debug, info, error, warn, fatal (default: "notice")<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_LOG_LEVEL</code></p></td></tr>
98
99
<trid="experiment"><th><code>--experiment value</code> <aclass="Docs__attribute__link"href="#experiment">#</a></th><td><p>Enable experimental features within the buildkite-agent<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_EXPERIMENT</code></p></td></tr>
0 commit comments