Skip to content

Commit

Permalink
docs(core): nx agents guide clean up (#21241)
Browse files Browse the repository at this point in the history
Co-authored-by: Rares Matei <[email protected]>
  • Loading branch information
isaacplmann and rarmatei authored Jan 22, 2024
1 parent 87256aa commit e2a819e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/nx-cloud/intro/nx-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Keep reading to learn what the configuration and setup looks like.

## 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
- name: Start CI run
Expand Down Expand Up @@ -102,11 +102,8 @@ jobs:
displayName: Main Job
...
steps:
- checkout: self
persistCredentials: true
- script: |
npx nx-cloud start-ci-run --distributes-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e-wrapper"
displayName: Start CI run
- checkout
- run: npx nx-cloud start-ci-run --distributes-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e-wrapper"
- ...
```
Expand Down

1 comment on commit e2a819e

@vercel
Copy link

@vercel vercel bot commented on e2a819e Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.