コード例 #1
0
def index_list(request, sub_nav_action):
    ''' index page'''
    try:
        page_worker = CIBuildPageWorker(request)
    except Exception as ex:
        SimpleLogger.exception(ex)
    return page_worker.get_build_fullpage(request, sub_nav_action)
コード例 #2
0
def task_parameter(request, task_id, task_property):
    ''' index page'''
    result = ""
    try:
        page_worker = CIBuildPageWorker(request)
        result = page_worker.get_build_parameter_fullpage(
            request, task_id, task_property)
    except Exception as ex:
        SimpleLogger.exception(ex)
    return HttpResponse(result)
コード例 #3
0
def unittest_history(request, task_id, task_property):
    ''' index page'''
    result = ""
    try:
        page_worker = CIBuildPageWorker(request)
        result = page_worker.get_unittest_history_fullpage(
            request, task_id, task_property)
    except Exception as ex:
        SimpleLogger.exception(ex)
    return HttpResponse(result)
コード例 #4
0
def history_clean(request, task_id, task_property):
    result = ""
    if request.method == "POST":
        pass
#         result=CITaskHistoryService.get_build_log(request,task_id)
    if request.method == "GET":
        page_worker = CIBuildPageWorker(request)
        result = page_worker.build_history_clean_fullpage(
            request, task_id, task_property)

    return HttpResponse(result)
コード例 #5
0
def build_with_parameter_page(request, task_id, task_property):
    ''' index page'''
    try:
        page_worker = CIBuildPageWorker(request)
        if CITaskParameterService.has_parameters(task_id):
            return page_worker.build_with_parameter_fullpage(
                request, task_id, task_property)
        else:
            CITaskService.start_ci_task(request, task_id, 0, 0)
    except Exception as ex:
        SimpleLogger.exception(ex)
    return redirect('/ci/task', request)
コード例 #6
0
def task_changelog(request, task_id, task_property):
    ''' index page'''
    page_worker = CIBuildPageWorker(request)
    return page_worker.get_build_changelog_fullpage(request, task_id,
                                                    task_property)