@Controller @RequestMapping(value="/build") @Feature(cls=BUILD) public class BuildListController extends BaseServerController
nodeService
Constructor and Description |
---|
BuildListController() |
Modifier and Type | Method and Description |
---|---|
String |
branchList(String url,
String userName,
String userPwd) |
String |
cleanSource(String id) |
String |
delete(String id) |
String |
edit(String id) |
String |
getMonitorList() |
String |
list() |
String |
updateMonitor(String id,
String name,
String gitUrl,
String userName,
String password,
String resultDirFile,
String script,
int releaseMethod,
String afterOpt,
String clearOld,
String branchName,
int repoType) |
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="list.html", method=GET, produces="text/html") @Feature(method=LIST) public String list()
@RequestMapping(value="list_data.json", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @Feature(method=LIST) public String getMonitorList()
@RequestMapping(value="updateBuild", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @OptLog(value=EditBuild) @Feature(method=EDIT) public String updateMonitor(String id, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6784\u5efa\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a")) String name, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u4ed3\u5e93\u5730\u5740\u4e0d\u6b63\u786e")) String gitUrl, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u767b\u5f55\u8d26\u53f7")) String userName, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u767b\u5f55\u5bc6\u7801")) String password, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6784\u5efa\u4ea7\u7269\u76ee\u5f55\u4e0d\u80fd\u4e3a\u7a7a")) String resultDirFile, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u6784\u5efa\u547d\u4ee4\u4e0d\u80fd\u4e3a\u7a7a")) String script, @ValidatorItem(value=POSITIVE_INTEGER,msg="\u53d1\u5e03\u65b9\u6cd5\u4e0d\u6b63\u786e") int releaseMethod, String afterOpt, String clearOld, String branchName, int repoType) throws Exception
Exception
@RequestMapping(value="edit.html", method=GET, produces="text/html") @Feature(method=EDIT) public String edit(String id)
@RequestMapping(value="branchList.json", method=POST, produces="application/json;charset=UTF-8") @ResponseBody public String branchList(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u4ed3\u5e93\u5730\u5740\u4e0d\u6b63\u786e")) String url, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u767b\u5f55\u8d26\u53f7")) String userName, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u767b\u5f55\u5bc6\u7801")) String userPwd) throws org.eclipse.jgit.api.errors.GitAPIException, IOException
org.eclipse.jgit.api.errors.GitAPIException
IOException
@RequestMapping(value="delete.json", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @OptLog(value=DelBuild) @Feature(method=DEL) public String delete(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636eid") String id) throws SQLException
SQLException
Copyright © 2017–2019. All rights reserved.