github.com/argoproj/argo-cd/v2@v2.10.5/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_REVISION`               | The resolved revision, e.g. `f913b6cbf58aa5ae5ca1f8a2b149477aebcbd9d8`. |
    10  | `ARGOCD_APP_REVISION_SHORT`         | The resolved short revision, e.g. `f913b6c`.                            |
    11  | `ARGOCD_APP_SOURCE_PATH`            | The path of the app within the source repo.                             |
    12  | `ARGOCD_APP_SOURCE_REPO_URL`        | The source repo URL.                                                    |
    13  | `ARGOCD_APP_SOURCE_TARGET_REVISION` | The target revision from the spec, e.g. `master`.                       |
    14  | `KUBE_VERSION`                      | The version of Kubernetes.                                              |
    15  | `KUBE_API_VERSIONS`                 | The version of the Kubernetes API.                                      |
    16  
    17  In case you don't want a variable to be interpolated, `$` can be escaped via `$$`.
    18  
    19  ```
    20  command:
    21    - sh
    22    - -c
    23    - |
    24      echo $$FOO
    25  ```