Skip to content

Commit cd831cb

Browse files
committed
enable deeper linking into various schemas
and fixed a few typos Signed-off-by: Taylor Silva <dev@taydev.net>
1 parent 740a6d5 commit cd831cb

9 files changed

Lines changed: 79 additions & 7 deletions

File tree

docs/docs/jobs.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
1414

1515
??? warning "**`name`**: [`identifier`](config-basics.md#identifier-schema) (required)"
1616

17+
### `name`
1718
The name of the job. This should be short; it will show up in URLs. If you want to rename a job, use `job.old_name`.
1819

1920
??? warning "`steps`: [`[step]`](steps/index.md) (required)"
2021

22+
### `steps`
2123
The sequence of [steps](steps/index.md) to execute.
2224

2325
??? info "**`old_name`**: [`identifier`](config-basics.md#identifier-schema)"
2426

27+
### `old_name`
2528
The old name of the job. If configured, the history of old job will be inherited to the new one. Once the pipeline
2629
is set, this field can be removed as the builds have been transfered.
2730

@@ -48,10 +51,12 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
4851

4952
??? info "**`serial`**: [`boolean`](config-basics.md#boolean-schema)"
5053

54+
### `serial`
5155
_Default `false`_. If set to `true`, builds will queue up and execute one-by-one, rather than executing in parallel.
5256

5357
??? info "**`serial_groups`**: [`[identifier]`](config-basics.md#identifier-schema)"
5458

59+
### `serial_groups`
5560
_Default `[]`_. When set to an array of arbitrary tag-like strings, builds of this job and other jobs referencing
5661
the same tags will be serialized.
5762

@@ -82,11 +87,13 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
8287

8388
??? info "**`max_in_flight`**: [`number`](config-basics.md#number-schema)"
8489

90+
### `max_in_flight`
8591
If set, specifies a maximum number of builds to run at a time. If `serial` or `serial_groups` are set, they take
8692
precedence and force this value to be `1`.
8793

8894
??? info "**`build_log_retention`**: [`build_log_retention_policy`](#build_log_retention_policy-schema)"
8995

96+
### `build_log_retention`
9097
Configures the retention policy for build logs. This is useful if you have a job that runs often but after some
9198
amount of time the logs aren't worth keeping around.
9299

@@ -117,7 +124,7 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
117124
the `builds` configuration. And if they all happened to have failed, the `minimum_succeeded_builds` will keep
118125
around at least one successful build. All policies operate independently.
119126

120-
### `build_log_retention_policy` schema
127+
#### `build_log_retention_policy` schema
121128

122129
??? info "**`days`**: [`number`](config-basics.md#number-schema)"
123130

@@ -138,6 +145,7 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
138145

139146
??? info "`public`: [`boolean`](config-basics.md#boolean-schema)"
140147

148+
### `public`
141149
_Default `false`_. If set to `true`, the build log of this job will be viewable by unauthenticated users.
142150
Unauthenticated users will always be able to see the inputs, outputs, and build status history of a job. This is
143151
useful if you would like to expose your pipeline publicly without showing sensitive information in the build log.
@@ -150,37 +158,44 @@ A pipeline's jobs are listed under [`pipeline.jobs`](pipelines/index.md#pipeline
150158

151159
??? info "`disable_manual_trigger`: [`boolean`](config-basics.md#boolean-schema)"
152160

161+
### `disable_manual_trigger`
153162
_Default `false`_. If set to `true`, manual triggering of the job (via the web UI or
154163
[`fly trigger-job`](#fly-trigger-job)) will be disabled.
155164

156165
??? info "`interruptible`: [`boolean`](config-basics.md#boolean-schema)"
157166

167+
### `interruptible`
158168
_Default `false`_. Normally, when a worker is shutting down it will wait for builds with containers running on that
159169
worker to finish before exiting. If this value is set to `true`, the worker will not wait on the builds of this job.
160170
You may want this if you have a self-deploying Concourse or long-running-but-low-importance jobs.
161171

162172
??? info "`on_success`: [`step`](steps/index.md)"
163173

174+
### `on_success`
164175
Step to execute when the job succeeds. Equivalent to the [`on_success`](steps/modifier-and-hooks/on-success.md)
165176
hook.
166177

167178
??? info "`on_failure`: [`step`](steps/index.md)"
168179

180+
### `on_failure`
169181
Step to execute when the job fails. Equivalent to the [`on_failure`](steps/modifier-and-hooks/on-failure.md)
170182
hook.
171183

172184
??? info "`on_error`: [`step`](steps/index.md)"
173185

186+
### `on_error`
174187
Step to execute when the job errors. Equivalent to the [`on_error`](steps/modifier-and-hooks/on-error.md)
175188
hook.
176189

177190
??? info "`on_abort`: [`step`](steps/index.md)"
178191

192+
### `on_abort`
179193
Step to execute when the job aborts. Equivalent to the [`on_abort`](steps/modifier-and-hooks/on-abort.md)
180194
hook.
181195

182196
??? info "`ensure`: [`step`](steps/index.md)"
183197

198+
### `ensure`
184199
Step to execute regardless of whether the job succeeds, fails, errors, or aborts. Equivalent to the
185200
[`ensure`](steps/modifier-and-hooks/ensure.md) hook.
186201

docs/docs/pipelines/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,23 @@ conform to the following schema:
1717

1818
??? warning "**`jobs`**: [`[job]`](../jobs.md#job-schema) (required)"
1919

20+
### `jobs`
2021
A set of [jobs](../jobs.md) for the pipeline to continuously schedule. At least one job is required for
2122
a pipeline to be valid.
2223

2324
??? info "`resources`: [`[resource]`](../resources/index.md#resource-schema)"
2425

26+
### `resources`
2527
A set of resources for the pipeline to continuously check.
2628

2729
??? info "`resource_types`: [`[resource_type]`](../resource-types/index.md#resource_type-schema)"
2830

31+
### `resource_types`
2932
A set of resource types for resources within the pipeline to use.
3033

3134
??? info "`var_sources`: [`[var_source]`](../vars.md#var_source-schema)"
3235

36+
### `var_sources`
3337
A set of Var sources for the pipeline to use.
3438

3539
??? info "`groups`: [`[group]`](#group_config-schema)"

docs/docs/resource-types/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ following schema:
1717

1818
??? warning "**`name`**: [`identifier`](../config-basics.md#identifier-schema) (required)"
1919

20+
### `name`
2021
The name of the resource type. This should be short and simple. This name will be referenced by
2122
[`pipeline.resources`](../pipelines/index.md#pipeline-schema) defined within the same pipeline, and
2223
[`task-config.image_resource`](../tasks.md#task-config-schema)s used by tasks running in the pipeline.
@@ -25,6 +26,7 @@ following schema:
2526

2627
??? warning "**`type`**: [`resource_type.name`](../resource-types/index.md#resource_type-schema) | [`identifier`](../config-basics.md#identifier-schema) (required)"
2728

29+
### `type`
2830
The type of the resource used to provide the resource type's container image.
2931

3032
This is a bit meta. Usually this value will be `registry-image` as the resource type must result in a container
@@ -35,6 +37,7 @@ following schema:
3537

3638
??? warning "**`source`**: [`config`](../config-basics.md#config-schema) (required)"
3739

40+
### `source`
3841
The configuration for the resource type's resource. This varies by resource type, and is a black box to Concourse;
3942
it is blindly passed to the resource at runtime.
4043

@@ -44,6 +47,7 @@ following schema:
4447

4548
??? info "`privileged`: [`boolean`](../config-basics.md#boolean-schema)"
4649

50+
### `privileged`
4751
_Default `false`_. If set to `true`, the resource's containers will be run with full capabilities, as determined by
4852
the worker backend the task runs on.
4953

@@ -57,22 +61,26 @@ following schema:
5761

5862
??? info "`params`: [`config`](../config-basics.md#config-schema)"
5963

64+
### `params`
6065
Arbitrary config to pass when running the [`get` step](../steps/get.md) to fetch the resource type's image. This is
6166
equivalent to [`get` step `params`](../steps/get.md#get-step).
6267

6368
??? info "`check_every`: [`duration`](../config-basics.md#duration-schema)"
6469

70+
### `check_every`
6571
_Default `1m`_. The interval on which to check for new versions of the resource. Acceptable interval options are
6672
defined by the [time.ParseDuration function](https://golang.org/pkg/time/#ParseDuration).
6773

6874
??? info "`tags`: [`[string]`](../config-basics.md#string-schema)"
6975

76+
### `tags`
7077
_Default `[]`_. A list of tags to determine which workers the checks will be performed on. You'll want to specify
7178
this if the source is internal to a worker's network, for example. See also
7279
[`tags`](../steps/modifier-and-hooks/tags.md)
7380

7481
??? info "`defaults`: [`config`](../config-basics.md#config-schema)"
7582

83+
### `defaults`
7684
The default configuration for the resource type. This varies by resource type, and is a black box to Concourse; it
7785
is merged with (duplicate fields are overwritten by) [`resource.source`](../resources/index.md#resource-schema) and
7886
passed to the resource at runtime.
@@ -129,7 +137,7 @@ following schema:
129137
```
130138

131139
Alternatively, the web node can be configured to use
132-
[defaults for base resource types](../install/running-web.md#configuring-defaults-for-resource-types)
140+
[defaults for base resource types](../install/running-web.md#configuring-defaults-for-resource-types).
133141

134142
---
135143

docs/docs/resources/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ schema.
2020

2121
??? warning "**`name`**: [`identifier`](../config-basics.md#identifier-schema) (required)"
2222

23+
### `name`
2324
The name of the resource. This should be short and simple. This name will be referenced by
2425
[build plans](../steps/index.md) of jobs in the pipeline.
2526

2627
??? warning "**`type`**: [`resource_type.name`](../resource-types/index.md#resource_type-schema) (required)"
2728

29+
### `type`
2830
The [resource type](../resource-types/index.md) implementing the resource.
2931

3032
??? warning "**`source`**: [`config`](../config-basics.md#config-schema) (required)"
3133

34+
### `source`
3235
The configuration for the resource. This varies by resource type, and is a black box to Concourse; it is blindly
3336
passed to the resource at runtime.
3437

@@ -42,6 +45,7 @@ schema.
4245

4346
??? info "**`old_name`**: [`identifier`](../config-basics.md#identifier-schema)"
4447

48+
### `old_name`
4549
The old name of the resource. If configured, the history of the old resource will be inherited to the new one. Once
4650
the pipeline is set, this field can be removed as the history has been transferred.
4751

@@ -71,11 +75,13 @@ schema.
7175

7276
??? info "`icon`: [`string`](../config-basics.md#string-schema)"
7377

78+
### `icon`
7479
The name of a [Material Design icon](https://materialdesignicons.com/) to show next to the resource name in the web
7580
UI. For example, `github`.
7681

7782
??? info "`version`: [`version`](../config-basics.md#version-schema)"
7883

84+
### `version`
7985
A version to pin the resource to across the pipeline. This has the same effect as setting
8086
[`get` step `version`](../steps/get.md#get-step) on every `get` step referencing the resource.
8187

@@ -85,6 +91,7 @@ schema.
8591

8692
??? info "`check_every`: [`duration`](../config-basics.md#duration-schema) | `never`"
8793

94+
### `check_every`
8895
_Default `1m`_. The interval on which to check for new versions of the resource. Acceptable interval options are
8996
defined by the [time.ParseDuration function](https://golang.org/pkg/time/#ParseDuration).
9097

@@ -93,17 +100,20 @@ schema.
93100

94101
??? info "`check_timeout`: [`duration`](../config-basics.md#duration-schema)"
95102

103+
### `check_timeout`
96104
_Default `1h`_. The time limit on checking new versions of resources. Acceptable interval options are defined by the
97105
[time.ParseDuration function](https://golang.org/pkg/time/#ParseDuration).
98106

99107
??? info "`expose_build_created_by`: [`boolean`](../config-basics.md#boolean-schema)"
100108

109+
### `expose_build_created_by`
101110
_Default `false`_. If set to `true`, environment variable
102111
[`BUILD_CREATED_BY`](../resource-types/implementing.md#metadata) will be available in the metadata of a
103112
[`put` step](../steps/put.md). This field is not made available to the [`get` step](../steps/get.md).
104113

105114
??? info "`tags`: [`[string]`](../config-basics.md#string-schema)"
106115

116+
### `tags`
107117
_Default `[]`_. A list of tags to determine which workers the checks will be performed on. You'll want to specify
108118
this if the source is internal to a worker's network, for example.
109119

@@ -115,6 +125,7 @@ schema.
115125

116126
??? info "`public`: [`boolean`](../config-basics.md#boolean-schema)"
117127

128+
### `public`
118129
_Default `false`_. If set to `true`, the metadata for each version of the resource will be viewable by
119130
unauthenticated users (assuming the pipeline has been [exposed](../auth-and-teams/exposing.md)).
120131

@@ -128,6 +139,7 @@ schema.
128139

129140
??? info "`webhook_token`: [`string`](../config-basics.md#string-schema)"
130141

142+
### `webhook_token`
131143
If specified, web hooks can be sent to trigger an immediate _check_ of the resource, specifying this value as a
132144
primitive form of authentication via query params.
133145

docs/docs/steps/get.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
88

99
??? warning "**`get`**: [`resource.name`](../resources/index.md#resource-schema) | [`identifier`](../config-basics.md#identifier-schema) (required)"
1010

11+
### `get`
1112
The fetched bits will be registered in the build's artifact namespace under the given identifier. Subsequent
1213
[`task` step](task.md) and [`put` step](put.md) which list the identifier as an input will have a copy of the bits
1314
in their working directory.
@@ -47,6 +48,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
4748

4849
??? info "**`resource`**: [`resource.name`](../resources/index.md#resource-schema)"
4950

51+
### `resource`
5052
_Defaults to the value of `get`_. The resource to fetch, as configured in
5153
[`pipeline.resources`](../pipelines/index.md#pipeline-schema).
5254

@@ -85,6 +87,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
8587

8688
??? info "**`passed`**: [`[job.name]`](../jobs.md#job-schema)"
8789

90+
### `passed`
8891
When specified, only the versions of the resource that made it through the given list of jobs (AND-ed together) will
8992
be considered when triggering and fetching.
9093

@@ -165,6 +168,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
165168

166169
??? info "**`params`**: [`config`](../config-basics.md#config-schema)"
167170

171+
### `params`
168172
Arbitrary configuration to pass to the resource. Refer to the resource type's documentation to see what it supports.
169173

170174
??? example "Fetching with params"
@@ -180,7 +184,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
180184
- put: cyberdeck
181185
params:
182186
file: cyberdeck/version_to_put.txt
183-
187+
184188
185189
resources:
186190
- name: cyberdeck
@@ -189,6 +193,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
189193

190194
??? info "**`trigger`**: [`boolean`](../config-basics.md#boolean-schema)"
191195

196+
### `trigger`
192197
_Default `false`_. If set to `true`, new builds of the job will be automatically created when a new version for this
193198
input becomes available.
194199

@@ -226,6 +231,7 @@ Fetches a version of a [resource](../resources/index.md). Expand each section be
226231

227232
??? info "**`version`**: `latest` | `every` | [`version`](../config-basics.md#version-schema)"
228233

234+
### `version`
229235
_Default `latest`_. The version of the resource to fetch.
230236

231237
If set to `latest`, scheduling will just find the latest available version of a resource and use it, allowing

docs/docs/steps/load-var.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ details and examples.
1010

1111
??? warning "**`load_var`**: [`identifier`](../config-basics.md#identifier-schema) (required)"
1212

13+
### `load_var`
1314
The identifier will be the name of var, available to subsequent steps as a [local build var](../vars.md#local-var).
1415

1516
??? example "Loading a simple value as a var"
@@ -27,7 +28,7 @@ details and examples.
2728
- put: img
2829
params:
2930
version: ((.:version))
30-
31+
3132
3233
resources:
3334
- name: examples
@@ -47,10 +48,12 @@ details and examples.
4748

4849
??? warning "**`file`**: [`file-path`](../config-basics.md#file-path-schema) (required)"
4950

51+
### `file`
5052
The path to a file whose content shall be read and used as the var's value.
5153

5254
??? info "**`format`**: `json` | `yaml` | `yml` | `trim` | `raw`"
5355

56+
### `format`
5457
The format of the file's content.
5558

5659
If unset, Concourse will try to detect the format from the file extension. If the file format cannot be determined,
@@ -87,7 +90,7 @@ details and examples.
8790
- put: img
8891
params:
8992
version: "((.:version.hello))-((.:version.number))"
90-
93+
9194
9295
resources:
9396
- name: examples
@@ -104,5 +107,6 @@ details and examples.
104107

105108
??? info "**`reveal`**: [`boolean`](../config-basics.md#boolean-schema)"
106109

110+
### `reveal`
107111
_Default `false`_. If set to `true`, allow the var's content to be printed in the build output even with secret
108112
redaction enabled.

0 commit comments

Comments
 (0)