@RestController @NotLogin public class BuildTriggerApiController extends BaseJpomController
Constructor and Description |
---|
BuildTriggerApiController(BuildInfoService buildInfoService,
BuildExecuteService buildExecuteService,
TriggerTokenLogServer triggerTokenLogServer) |
Modifier and Type | Method and Description |
---|---|
String |
buildStatusGet(String id,
String token)
批量获取构建状态
|
String |
buildStatusPost()
批量获取构建状态
|
String |
trigger2(String id,
String token,
String delay,
String buildRemark)
构建触发器
|
String |
triggerBatch()
构建触发器
|
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, resetInfo
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public BuildTriggerApiController(BuildInfoService buildInfoService, BuildExecuteService buildExecuteService, TriggerTokenLogServer triggerTokenLogServer)
@RequestMapping(value="/api//build2/{id}/{token}", produces="application/json") public String trigger2(@PathVariable String id, @PathVariable String token, String delay, String buildRemark)
id
- 构建IDtoken
- 构建的tokendelay
- 延迟时间(单位秒)@PostMapping(value="/api//build_batch", produces="application/json") public String triggerBatch()
参数 [
{
"id":"1",
"token":"a",
"delay":"0"
}
]
响应 [
{
"id":"1",
"token":"a",
"delay":"0",
"msg":"开始构建",
"data":1
}
]
@GetMapping(value="/api//build_status", produces="application/json") public String buildStatusGet(@ValidatorItem String id, @ValidatorItem String token)
@PostMapping(value="/api//build_status", produces="application/json") public String buildStatusPost()
Copyright © 2017–2022. All rights reserved.