github.com/argoproj/argo-cd/v3@v3.2.1/docs/user-guide/build-environment.md (about) 1 # Build Environment 2 3 [Custom tools](../operator-manual/config-management-plugins.md), [Helm](helm.md), [Jsonnet](jsonnet.md), and [Kustomize](kustomize.md) support the following build env vars: 4 5 | Variable | Description | 6 | ----------------------------------- | ----------------------------------------------------------------------- | 7 | `ARGOCD_APP_NAME` | The name of the application. | 8 | `ARGOCD_APP_NAMESPACE` | The destination namespace of the application. | 9 | `ARGOCD_APP_PROJECT_NAME` | The name of the project the application belongs to. | 10 | `ARGOCD_APP_REVISION` | The resolved revision, e.g. `f913b6cbf58aa5ae5ca1f8a2b149477aebcbd9d8`. | 11 | `ARGOCD_APP_REVISION_SHORT` | The resolved short revision, e.g. `f913b6c`. | 12 | `ARGOCD_APP_REVISION_SHORT_8` | The resolved short revision with length 8, e.g. `f913b6cb`. | 13 | `ARGOCD_APP_SOURCE_PATH` | The path of the app within the source repo. | 14 | `ARGOCD_APP_SOURCE_REPO_URL` | The source repo URL. | 15 | `ARGOCD_APP_SOURCE_TARGET_REVISION` | The target revision from the spec, e.g. `master`. | 16 | `KUBE_VERSION` | The semantic version of Kubernetes without trailing metadata. | 17 | `KUBE_API_VERSIONS` | The version of the Kubernetes API. | 18 19 In case you don't want a variable to be interpolated, `$` can be escaped via `$$`. 20 21 ``` 22 command: 23 - sh 24 - -c 25 - | 26 echo $$FOO 27 ```