Skip to content

Commit

Permalink
docs(nx-dev): add distribute on manual to custom dte (nrwl#27059)
Browse files Browse the repository at this point in the history
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
  • Loading branch information
meeroslav authored Jul 23, 2024
1 parent 21cb714 commit 157aca4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/nx-cloud/enterprise/dte/azure-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- script: git branch --track main origin/main
- script: npm ci
- script: npx nx-cloud start-ci-run --stop-agents-after="e2e-ci"
- script: npx nx-cloud start-ci-run --distribute-on="manual" --stop-agents-after="e2e-ci"
- script: npx nx-cloud record -- nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
- script: npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t lint,test,build,e2e-ci --parallel=2 --configuration=ci
```
Expand Down
2 changes: 1 addition & 1 deletion docs/nx-cloud/enterprise/dte/bitbucket-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pipelines:
- export NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT=3

- npm ci
- npx nx-cloud start-ci-run --stop-agents-after="e2e-ci" --agent-count=3
- npx nx-cloud start-ci-run --distribute-on="manual" --stop-agents-after="e2e-ci" --agent-count=3
- npx nx-cloud record -- nx format:check
- npx nx affected --target=lint,test,build,e2e-ci --parallel=2
- step: *agent
Expand Down
2 changes: 1 addition & 1 deletion docs/nx-cloud/enterprise/dte/circle-ci-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- nx/set-shas

# Tell Nx Cloud to use DTE and stop agents when the e2e-ci tasks are done
- run: npx nx-cloud start-ci-run --stop-agents-after=e2e-ci
- run: npx nx-cloud start-ci-run --distribute-on="manual" --stop-agents-after=e2e-ci
# Send logs to Nx Cloud for any CLI command
- run: npx nx-cloud record -- nx format:check
# Lint, test, build and run e2e on agent jobs for everything affected by a change
Expand Down
2 changes: 1 addition & 1 deletion docs/nx-cloud/enterprise/dte/github-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: git branch --track main origin/main

- name: Initialize the Nx Cloud distributed CI run and stop agents when the build tasks are done
run: npx nx-cloud start-ci-run --stop-agents-after=e2e-ci
run: npx nx-cloud start-ci-run --distribute-on="manual" --stop-agents-after=e2e-ci

- name: Run commands in parallel
run: |
Expand Down
2 changes: 1 addition & 1 deletion docs/nx-cloud/enterprise/dte/gitlab-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nx-dte:
stage: affected
extends: .base-pipeline
script:
- yarn nx-cloud start-ci-run --stop-agents-after=e2e-ci
- yarn nx-cloud start-ci-run --distribute-on="manual" --stop-agents-after=e2e-ci
- yarn nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
- yarn nx affected --base=$NX_BASE --head=$NX_HEAD -t lint,test,build,e2e-ci --parallel=2

Expand Down
4 changes: 2 additions & 2 deletions docs/nx-cloud/enterprise/dte/jenkins-dte.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pipeline {
agent any
steps {
sh "npm ci"
sh "npx nx-cloud start-ci-run --stop-agents-after='e2e-ci'"
sh "npx nx-cloud start-ci-run --distribute-on='manual' --stop-agents-after='e2e-ci'"
sh "npx nx-cloud record -- nx format:check"
sh "npx nx affected --base=HEAD~1 -t lint,test,build,e2e-ci --configuration=ci --parallel=2"
}
Expand All @@ -35,7 +35,7 @@ pipeline {
agent any
steps {
sh "npm ci"
sh "npx nx-cloud start-ci-run --stop-agents-after='e2e-ci'"
sh "npx nx-cloud start-ci-run --distribute-on='manual' --stop-agents-after='e2e-ci'"
sh "npx nx-cloud record -- nx format:check"
sh "npx nx affected --base origin/${env.CHANGE_TARGET} -t lint,test,build,e2e-ci --parallel=2 --configuration=ci"
}
Expand Down

0 comments on commit 157aca4

Please sign in to comment.