@RestController @Feature(cls=BUILD_LOG) public class BuildInfoHistoryController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
BuildInfoHistoryController(BuildInfoService buildInfoService,
DbBuildHistoryLogService dbBuildHistoryLogService) |
| Modifier and Type | Method and Description |
|---|---|
cn.jiangzeyin.common.JsonMessage<String> |
delete(String logId)
删除构建历史,支持批量删除,用逗号分隔
|
void |
downloadFile(String logId)
下载构建物
|
void |
downloadFile(String buildId,
int buildNumberId)
下载构建物
|
void |
downloadLog(String logId) |
String |
historyList() |
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic BuildInfoHistoryController(BuildInfoService buildInfoService, DbBuildHistoryLogService dbBuildHistoryLogService)
@RequestMapping(value="/build/history/download_file.html",
method=GET)
@Feature(method=DOWNLOAD)
public void downloadFile(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String logId)
logId - 日志id@RequestMapping(value="/build/history/download_file_by_build",
method=GET)
@Feature(method=DOWNLOAD)
public void downloadFile(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String buildId,
@ValidatorItem(value=NUMBERS)
int buildNumberId)
buildId - 构建IDbuildNumberId - 构建序号ID@RequestMapping(value="/build/history/download_log.html",
method=GET)
@Feature(method=DOWNLOAD)
public void downloadLog(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String logId)
@RequestMapping(value="/build/history/history_list.json",
method=POST,
produces="application/json")
@Feature(method=LIST)
public String historyList()
@RequestMapping(value="/build/history/delete_log.json",
method=POST,
produces="application/json")
@Feature(method=DEL)
public cn.jiangzeyin.common.JsonMessage<String> delete(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e"))
String logId)
logId - idCopyright © 2017–2022. All rights reserved.