def get_build_json():
    try:
        return json.loads(os.environ["BUILD"])
    except __HOLE__:
        logger.error("No $BUILD env variable. Probably not running in build container")
        raise

# copypasted and slightly modified from
# http://stackoverflow.com/questions/1094841/reusable-library-to-get-human-readable-version-of-file-size/1094933#1094933
dataset/ETHPy150Open projectatomic/atomic-reactor/atomic_reactor/util.py/get_build_json