2018-12-13 14:19:08 -05:00
|
|
|
// Module included in the following assemblies:
|
2020-06-10 11:18:10 -04:00
|
|
|
// * builds/basic-build-operations.adoc
|
2018-12-13 14:19:08 -05:00
|
|
|
|
2023-10-30 10:13:25 -04: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
|
|
|
|
|
|
2020-08-06 13:15:31 -04:00
|
|
|
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:
|
|
|
|
|
+
|
2020-08-06 13:15:31 -04:00
|
|
|
[source,terminal]
|
2018-12-13 14:19:08 -05:00
|
|
|
----
|
|
|
|
|
$ oc start-build <buildconfig_name> --env=<key>=<value>
|
|
|
|
|
----
|