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)
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)
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)
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)
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)
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)