Esempio n. 1
0
def record_deploy_success(environment, repo, diff, start):
    end = datetime.utcnow()
    create_release_tag(environment, repo, diff)
    record_deploy_in_datadog(environment, diff, end - start)
    update_sentry_post_deploy(environment, "formplayer", repo, diff, start, end)
    announce_deploy_success(environment, FORMPLAYER, diff.get_email_diff())
    publish_deploy_event("deploy_success", "formplayer", environment)
Esempio n. 2
0
def record_successful_deploy(environment, diff, start_time):
    end_time = datetime.utcnow()

    create_release_tag(environment, diff.repo, diff)
    update_sentry_post_deploy(environment, "commcarehq", diff.repo, diff, start_time, end_time)
    announce_deploy_success(environment, "CommCareHQ", diff.get_email_diff())
    call_record_deploy_success(environment, diff, start_time, end_time)
    publish_deploy_event("deploy_success", "commcare", environment)
Esempio n. 3
0
def record_successful_deploy(environment, context):
    end_time = datetime.utcnow()

    diff = context.diff
    create_release_tag(environment, diff.repo, diff)
    update_sentry_post_deploy(environment, "commcarehq", diff.repo, diff,
                              context.start_time, end_time)
    announce_deploy_success(environment, context)
    call_record_deploy_success(environment, context, end_time)
    publish_deploy_event("deploy_success", "commcare", environment)
Esempio n. 4
0
def record_deploy_success(environment, context):
    end = datetime.utcnow()
    diff = context.diff
    repo = diff.repo
    create_release_tag(environment, repo, diff)
    record_deploy_in_datadog(environment, diff, end - context.start_time)
    update_sentry_post_deploy(environment, "formplayer", repo, diff,
                              context.start_time, end)
    announce_deploy_success(environment, context)
    publish_deploy_event("deploy_success", "formplayer", environment)