anchor.diff:  ----
   ====
   
  +[[output-image-environment-variables]]
   === Output Image Environment Variables
   
  -Docker and source builds set the following environment variables on output images:
  -
  -[horizontal]
  -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
  -
  +Docker and Source builds set the following environment variables on output
  +images:
  +
  +[options="header"]
  +|===
  +
  +|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
  +|===
  +
  +[[output-image-labels]]
   === Output Image Labels
   
  -Docker and source builds set the following labels on output images:
  -
  -[horizontal]
  -io.openshift.build.commit.author:: Author of the source commit used in the build
  -io.openshift.build.commit.date:: Date of the source commit used in the build
  -io.openshift.build.commit.id:: Hash of the source commit used in the build
  -io.openshift.build.commit.message:: Message of the source commit used in the build
  -io.openshift.build.commit.ref:: Branch or reference specified in the source
  -io.openshift.build.source-location:: Source URL for the build
  -
  +Docker and Source builds set the following labels on output images:
  +
  +[options="header"]
  +|===
  +
  +|Label |Description
  +
  +|*io.openshift.build.commit.author*
  +|Author of the source commit used in the build
  +
  +|*io.openshift.build.commit.date*
  +|Date of the source commit used in the build
  +
  +|*io.openshift.build.commit.id*
  +|Hash of the source commit used in the build
  +
  +|*io.openshift.build.commit.message*
  +|Message of the source commit used in the build
  +
  +|*io.openshift.build.commit.ref*
  +|Branch or reference specified in the source
  +
  +|*io.openshift.build.source-location*
  +|Source URL for the build
  +|===
  
positive.code: A link:../architecture/core_concepts/builds_and_image_streams.html#builds[build] is a process of creating
  runnable images to be used on OpenShift. There are three build strategies:
  
  - Source-To-Image (S2I) (link:../architecture/core_concepts/builds_and_image_streams.html#source-build[description], link:#source-to-image-strategy-options[options])
  - Docker (link:../architecture/core_concepts/builds_and_image_streams.html#docker-build[description], link:#docker-strategy-options[options])
  - Custom (link:../architecture/core_concepts/builds_and_image_streams.html#custom-build[description], link:#custom-strategy-options[options])
  
  [[defining-a-buildconfig]]
  
  
negative.code: Manually cancel a build using the web console, or with the following CLI command:
  
  ----
  $ oc cancel-build <build_name>
  ----
  
  [[viewing-build-details]]
  == Viewing Build Details
  
  You can view build details using the web console or the following CLI command:
  
  ----
  $ oc describe build <build_name>
  ----
  
  The output of the `describe` command includes details such as the build source,
  strategy, and output destination.
  
  [[accessing-build-logs]]
  
  == Accessing Build Logs
  You can access build logs using the web console or the CLI.
  
  To stream the logs using the build directly:
  
  ----
  $ oc logs -f build/<build_name>
  ----
  
  To stream the logs of the latest build for a build configuration:
  
  ----
  $ oc logs -f bc/<buildconfig_name>
  ----
  
  To return the logs of a given version build for a build configuration:
  
  ----
  $ oc logs --version=<number> bc/<buildconfig_name>
  ----
  
  *Log Verbosity*
  