def METHOD_NAME(scm_uri):
    is_deploying_uri = '%s/api/isdeploying' % scm_uri
    is_deploying = requests.get(is_deploying_uri).json()['value']
    if strtobool(is_deploying):
        return DeploymentStatus.Active
    # Get build status
    deployments_uri = '%s/deployments' % scm_uri
    r = requests.get(deployments_uri).json()
    if len(r) == 0:
        return DeploymentStatus.NotFound
    status = r[0]['status']
    if status == 3:
        return DeploymentStatus.Failed
    return DeploymentStatus.Succeeded