Get the environment for a build

Retrieve the deployment environment for a build.