@RestController @Feature(cls=BUILD) public class BuildInfoManageController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
BuildInfoManageController(BuildInfoService buildInfoService,
DbBuildHistoryLogService dbBuildHistoryLogService,
BuildExecuteService buildExecuteService) |
| Modifier and Type | Method and Description |
|---|---|
String |
cancel(String id)
取消构建
|
String |
getNowLog(String id,
int buildId,
int line)
获取构建的日志
|
String |
reRelease(String logId)
重新发布
|
String |
start(String id,
String buildRemark,
String resultDirFile,
String branchName,
String branchTagName)
开始构建
|
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 BuildInfoManageController(BuildInfoService buildInfoService, DbBuildHistoryLogService dbBuildHistoryLogService, BuildExecuteService buildExecuteService)
@RequestMapping(value="/build/manage/start",
method=POST,
produces="application/json")
@Feature(method=EXECUTE)
public String start(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String id,
String buildRemark,
String resultDirFile,
String branchName,
String branchTagName)
id - id@RequestMapping(value="/build/manage/cancel",
method=POST,
produces="application/json")
@Feature(method=EXECUTE)
public String cancel(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e"))
String id)
id - id@RequestMapping(value="/build/manage/reRelease",
method=POST,
produces="application/json")
@Feature(method=EXECUTE)
public String reRelease(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e"))
String logId)
logId - logId@RequestMapping(value="/build/manage/get-now-log",
method=POST,
produces="application/json")
@Feature(method=LIST)
public String getNowLog(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String id,
@ValidatorItem(value=POSITIVE_INTEGER,msg="\u6ca1\u6709buildId")
int buildId,
@ValidatorItem(value=POSITIVE_INTEGER,msg="line")
int line)
id - idbuildId - 构建编号line - 需要获取的行号Copyright © 2017–2022. All rights reserved.