The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Remote Env File

withRemoteEnvFiles: Load environment variables from a remote HTTPS dotenv file

  • sources (optional)
    Ordered list of remote HTTPS dotenv files to load for this build wrapper. Sources are loaded top to bottom, and later sources override earlier remote values with the same variable name. Remote values become ordinary environment variables. If a build step echoes them, Jenkins does not mask or protect those values automatically.
      Array / List of Nested Object
    • sourceUrl : String
      HTTPS URL to a remote .env file. Existing build variables such as ${PARAM} are expanded before the file is fetched. Sources are loaded in order, and later sources override earlier remote values with the same variable name.
    • credentialsId : String (optional)
      Optional Jenkins credentials ID for this source. Leave blank for anonymous access. Secret Text credentials are sent as bearer tokens, and Username with password credentials are sent as HTTP Basic auth.

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.