Skip to content

Commit ca040c4

Browse files
Merge pull request circleci#4422 from Dominik-K/patch-1
config-ref.: `job.{}.parameters` properly documented
2 parents 8cd0be8 + db428f5 commit ca040c4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

jekyll/_cci2/configuration-reference.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ docker | Y <sup>(1)</sup> | List | Options for [docker executor](#docker)
144144
machine | Y <sup>(1)</sup> | Map | Options for [machine executor](#machine)
145145
macos | Y <sup>(1)</sup> | Map | Options for [macOS executor](#macos)
146146
shell | N | String | Shell to use for execution command in all steps. Can be overridden by `shell` in each step (default: See [Default Shell Options](#default-shell-options))
147-
parameters | N | Map | A map of parameters that need to be passed as part of the request when performing this operation
147+
parameters | N | Map | [Parameters](#parameters) for making a `job` explicitly configurable in a `workflow`.
148148
steps | Y | List | A list of [steps](#steps) to be performed
149149
working_directory | N | String | In which directory to run the steps. Default: `~/project` (where `project` is a literal string, not the name of your specific project). Processes run during the job can use the `$CIRCLE_WORKING_DIRECTORY` environment variable to refer to this directory. **Note:** Paths written in your YAML configuration file will _not_ be expanded; if your `store_test_results.path` is `$CIRCLE_WORKING_DIRECTORY/tests`, then CircleCI will attempt to store the `test` subdirectory of the directory literally named `$CIRCLE_WORKING_DIRECTORY`, dollar sign `$` and all.
150150
parallelism | N | Integer | Number of parallel instances of this job to run (default: 1)
@@ -158,6 +158,7 @@ resource_class | N | String | Amount of CPU and RAM allocated to each container
158158
#### `environment`
159159
A map of environment variable names and values. These will override any environment variables you set in the CircleCI application.
160160

161+
161162
#### `parallelism`
162163

163164
If `parallelism` is set to N > 1, then N independent executors will be set up and each will run the steps of that job in parallel. This can help optimize your test steps; you can split your test suite, using the CircleCI CLI, across parallel containers so the job will complete in a shorter time. Certain parallelism-aware steps can opt out of the parallelism and only run on a single executor (for example [`deploy` step](#deploy--deprecated)). Learn more about [parallel jobs]({{ site.baseurl }}/2.0/parallelism-faster-jobs/).
@@ -180,6 +181,23 @@ jobs:
180181
- run: go test -v $(go list ./... | circleci tests split)
181182
```
182183

184+
#### `parameters`
185+
The `parameters` can be used when [calling that `job` in a `workflow`](#jobs-1).
186+
187+
Reserved parameter-names:
188+
189+
* `name`
190+
* `requires`
191+
* `context`
192+
* `type`
193+
* `filters`
194+
* `matrix`
195+
<!-- Others? -->
196+
<!-- branches & type pass `circleci config validate`. Strange -->
197+
198+
See [Parameter Syntax]({{ site.baseurl }}/2.0/reusing-config/#parameter-syntax) <!-- In this reference, it's not mentioned which types are allowed for job-parameters. --> for definition details.
199+
200+
183201
#### **`docker`** / **`machine`** / **`macos`** / **`windows`** (_executor_)
184202

185203
An "executor" is roughly "a place where steps occur". CircleCI 2.0 can build the necessary environment by launching as many docker containers as needed at once, or it can use a full virtual machine. Learn more about [different executors]({{ site.baseurl }}/2.0/executor-types/).

0 commit comments

Comments
 (0)