@RestController @RequestMapping(value="/build") @Feature(cls=BUILD) public class BuildManageController extends BaseServerController
nodeService
Constructor and Description |
---|
BuildManageController() |
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)
开始构建
|
doPage, getNode, getUser, getUserModel, remove, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
@RequestMapping(value="start.json", method=POST, produces="application/json;charset=UTF-8") @OptLog(value=StartBuild) @Feature(method=EXECUTE) public String start(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")) String id) throws IOException
id
- idIOException
- e@RequestMapping(value="cancel.json", method=POST, produces="application/json;charset=UTF-8") @OptLog(value=CancelBuild) @Feature(method=EXECUTE) public String cancel(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")) String id) throws IOException
id
- idIOException
- e@RequestMapping(value="reRelease.json", method=POST, produces="application/json;charset=UTF-8") @OptLog(value=ReReleaseBuild) @Feature(method=EXECUTE) public String reRelease(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")) String logId) throws IOException, SQLException
logId
- logIdIOException
- ioSQLException
- s@RequestMapping(value="getNowLog.json", method=POST, produces="application/json;charset=UTF-8") @Feature(method=EXECUTE) 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) throws IOException
id
- idbuildId
- 构建编号line
- 需要获取的行号IOException
- eCopyright © 2017–2019. All rights reserved.