Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1016 Bytes

builds-output-image-environment-variables.adoc

File metadata and controls

42 lines (32 loc) · 1016 Bytes

Output image environment variables

Source-to-Image (S2I) strategy builds set the following environment variables on output images:

Variable Description

OPENSHIFT_BUILD_NAME

Name of the build

OPENSHIFT_BUILD_NAMESPACE

Namespace of the build

OPENSHIFT_BUILD_SOURCE

The source URL of the build

OPENSHIFT_BUILD_REFERENCE

The Git reference used in the build

OPENSHIFT_BUILD_COMMIT

Source commit used in the build

Additionally, any user-defined environment variable, for example those configured with S2I] strategy options, will also be part of the output image environment variable list.