Esempio n. 1
0
def promote_to(request, name, stage, deploy_id):
    query_dict = request.POST
    toStages = query_dict['toStages']
    description = query_dict['description']
    toStage = None
    for toStage in toStages.split(','):
        deploys_helper.promote(request, name, toStage, deploy_id, description)

    return redirect('/env/%s/%s/deploy' % (name, toStage))
Esempio n. 2
0
def promote_to(request, name, stage, deploy_id):
    query_dict = request.POST
    toStages = query_dict['toStages']
    description = query_dict['description']
    toStage = None
    for toStage in toStages.split(','):
        deploys_helper.promote(request, name, toStage, deploy_id, description)

    return redirect('/env/%s/%s/deploy' % (name, toStage))
Esempio n. 3
0
def promote_to_prod(request, deploy_id, build):
    params = request.POST
    description = params.get("description", None)
    ngapp2_deploy_utils = Ngapp2DeployUtils()
    ngapp2_deploy_utils.deploy_to_prod(build)
    user = request.teletraan_user_id
    env_name = ngapp2_deploy_utils.get_deploying_env_from_zk()
    deploys_helper.promote(request, env_name, "prod", deploy_id, description)
    sendStartMessage(request, user, env_name, "prod", notifyAuthor=False)
    return redirect("/ngapp2/deploy/")
Esempio n. 4
0
def promote_to_prod(request, deploy_id, build):
    params = request.POST
    description = params.get("description", None)
    ngapp2_deploy_utils = Ngapp2DeployUtils()
    ngapp2_deploy_utils.deploy_to_prod(build)
    user = request.teletraan_user_id
    env_name = ngapp2_deploy_utils.get_deploying_env_from_zk()
    deploys_helper.promote(request, env_name, "prod", deploy_id, description)
    sendStartMessage(request, user, env_name, "prod", notifyAuthor=False)
    return redirect("/ngapp2/deploy/")
Esempio n. 5
0
def promote(request, name, stage):
    query_dict = request.POST
    toStage = query_dict['toStage']
    desc = query_dict.get('description', None)
    env = environs_helper.get_env_by_stage(request, name, stage)
    return deploys_helper.promote(request,
                                  name,
                                  toStage,
                                  env['deployId'],
                                  description=desc)
Esempio n. 6
0
def promote(request, name, stage):
    query_dict = request.POST
    toStage = query_dict['toStage']
    desc = query_dict.get('description', None)
    env = environs_helper.get_env_by_stage(request, name, stage)
    return deploys_helper.promote(request, name, toStage, env['deployId'], description=desc)