docs(core): nx agents guide clean up (#21241)
Co-authored-by: Rares Matei <matei.rar@gmail.com>
This commit is contained in:
parent
87256aae66
commit
e2a819ef18
@ -31,7 +31,7 @@ Keep reading to learn what the configuration and setup looks like.
|
|||||||
|
|
||||||
## Managed Agents, Seamless Configuration
|
## Managed Agents, Seamless Configuration
|
||||||
|
|
||||||
Enabling task distribution with Nx Agents can be done in a single line. Simply add the following to your CI pipeline configuration before your other steps:
|
Enabling task distribution with Nx Agents can be done in a single line. Simply add the `--distribute-on` property to the `start-ci-run` line in your CI pipeline configuration:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Start CI run
|
- name: Start CI run
|
||||||
@ -102,11 +102,8 @@ jobs:
|
|||||||
displayName: Main Job
|
displayName: Main Job
|
||||||
...
|
...
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout
|
||||||
persistCredentials: true
|
- run: npx nx-cloud start-ci-run --distributes-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e-wrapper"
|
||||||
- script: |
|
|
||||||
npx nx-cloud start-ci-run --distributes-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e-wrapper"
|
|
||||||
displayName: Start CI run
|
|
||||||
- ...
|
- ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user