From a54bbcc8ac660dfd689c9a05be0a32af6ac8b9b5 Mon Sep 17 00:00:00 2001 From: Juri Date: Mon, 2 Dec 2024 23:14:47 +0100 Subject: [PATCH] docs(nx-cloud): remove note on --with-env-vars=auto as it is breaking users badly 90% of the time --- docs/nx-cloud/reference/launch-templates.md | 6 ------ docs/nx-cloud/reference/nx-cloud-cli.md | 7 ------- 2 files changed, 13 deletions(-) diff --git a/docs/nx-cloud/reference/launch-templates.md b/docs/nx-cloud/reference/launch-templates.md index c24ecefe64..04bccf43ce 100644 --- a/docs/nx-cloud/reference/launch-templates.md +++ b/docs/nx-cloud/reference/launch-templates.md @@ -360,12 +360,6 @@ If you need to send environment variables to agents, you can use the [--with-env nx-cloud start-ci-run --distribute-on="8 linux-medium-js" --with-env-vars="VAR1,VAR2" ``` -Or pass all the environment variables except OS-specific ones with this `--with-env-vars="auto"`: - -``` -nx-cloud start-ci-run --distribute-on="8 linux-medium-js" --with-env-vars="auto" -``` - ## Pass Values Between Steps If you need to pass a value from one step to another step, such as assigning the value to an existing or new environment variable. You can write to the `NX_CLOUD_ENV` environment file. diff --git a/docs/nx-cloud/reference/nx-cloud-cli.md b/docs/nx-cloud/reference/nx-cloud-cli.md index ce7077b6fa..fee8056dfb 100644 --- a/docs/nx-cloud/reference/nx-cloud-cli.md +++ b/docs/nx-cloud/reference/nx-cloud-cli.md @@ -206,13 +206,6 @@ main CI jobs and the Nx Agent machines. If you want to pass other environment variables from the main job to Nx Agents, you can do it as follows: `--with-env-vars="VAR1,VAR2"`. This will set `VAR1` and `VAR2` on Nx Agents to the same values set on the main job before any steps run. -You can also pass `--with-env-vars="auto"` which will filter out all OS-specific environment variables and pass the rest to Nx Agents. - -{% callout type="warning" title="Use Caution With 'auto'" %} -Using `--with-env-vars="auto"` will override any existing environment variables on the Nx Agent, some of which might be critical to the -functionality of that machine. In case of unexpected issues on Nx Agents, try fallback to the explicit variable definition using `--with-env-vars="VAR1,VAR2,..."`. -{% /callout %} - Note: none of the values passed to Nx Agents are stored by Nx Cloud. ### Enabling/Disabling Distribution