1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/builds-basic-start-environment-variable.adoc

18 lines
497 B
Plaintext
Raw Permalink Normal View History

2018-12-13 14:19:08 -05:00
// Module included in the following assemblies:
// * builds/basic-build-operations.adoc
2018-12-13 14:19:08 -05:00
:_mod-docs-content-type: PROCEDURE
2019-05-13 08:55:00 +10:00
[id="builds-basic-start-environment-variable_{context}"]
2018-12-13 14:19:08 -05:00
= Setting environment variables when starting a build
You can specify the `--env` flag to set any desired environment variable for the build.
2018-12-13 14:19:08 -05:00
.Procedure
2020-12-03 22:10:00 -05:00
* To specify a desired environment variable, enter the following command:
+
[source,terminal]
2018-12-13 14:19:08 -05:00
----
$ oc start-build <buildconfig_name> --env=<key>=<value>
----