Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 883 Bytes

builds-strategy-pipeline-environment-variables.adoc

File metadata and controls

37 lines (26 loc) · 883 Bytes

Using environment variables for pipeline builds

To make environment variables available to the Pipeline build process, you can add environment variables to the jenkinsPipelineStrategy definition of the BuildConfig.

Once defined, the environment variables will be set as parameters for any Jenkins job associated with the BuildConfig

Procedure

To define environment variables to be used during build:

jenkinsPipelineStrategy:
...
  env:
    - name: "FOO"
      value: "BAR"

You can also manage environment variables defined in the BuildConfig with the oc set env command.