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: jekyll/_cci2/configuration-reference.md
+19-1
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ docker | Y <sup>(1)</sup> | List | Options for [docker executor](#docker)
144
144
machine | Y <sup>(1)</sup> | Map | Options for [machine executor](#machine)
145
145
macos | Y <sup>(1)</sup> | Map | Options for [macOS executor](#macos)
146
146
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`.
148
148
steps | Y | List | A list of [steps](#steps) to be performed
149
149
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.
150
150
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
158
158
#### `environment`
159
159
A map of environment variable names and values. These will override any environment variables you set in the CircleCI application.
160
160
161
+
161
162
#### `parallelism`
162
163
163
164
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:
180
181
- run: go test -v $(go list ./... | circleci tests split)
181
182
```
182
183
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.
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