|
|
@@ -37,7 +37,7 @@ public class PipelineController {
|
|
|
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperation(value = "获取指定项目的所有流水线基本信息", httpMethod = "GET")
|
|
|
- @ApiImplicitParam(name = "projectId", dataType = "int")
|
|
|
+ @ApiImplicitParam(name = "projectId", dataType = "int",paramType = "query")
|
|
|
public Response<List<PipelineInfoVO>> retrievePipelineInfos(@RequestParam("projectId") Integer projectId){
|
|
|
return Response.buildSuccess(pipelineService.retrievePipelineInfos(projectId));
|
|
|
}
|
|
|
@@ -45,8 +45,8 @@ public class PipelineController {
|
|
|
@GetMapping
|
|
|
@ApiOperation(value = "获取指定一条流水线的配置json信息", httpMethod = "GET")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
|
- @ApiImplicitParam(name = "pipelineId", dataType = "int")
|
|
|
+ @ApiImplicitParam(name = "projectId", dataType = "int",paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "pipelineId", dataType = "int",paramType = "query")
|
|
|
})
|
|
|
public Response<PipelineConfigVO> retrievePipelineConfig(@RequestParam("projectId")Integer projectId,
|
|
|
@RequestParam("pipelineId")Integer pipelineId){
|
|
|
@@ -57,8 +57,8 @@ public class PipelineController {
|
|
|
@GetMapping("/history/list")
|
|
|
@ApiOperation(value = "获取指定一条流水线的历史构建信息列表", httpMethod = "GET")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
|
- @ApiImplicitParam(name = "pipelineId", dataType = "int")
|
|
|
+ @ApiImplicitParam(name = "projectId", dataType = "int",paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "pipelineId", dataType = "int",paramType = "query")
|
|
|
})
|
|
|
public Response<List<PipelineHistoryVO>> retrievePipelineHistory(@RequestParam("projectId")Integer projectId,
|
|
|
@RequestParam("pipelineId")Integer pipelineId){
|
|
|
@@ -67,7 +67,7 @@ public class PipelineController {
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "依据模板创建一个流水线配置", httpMethod = "POST")
|
|
|
- @ApiImplicitParam(name = "pipelineCreateVO", value = "流水线创建配置信息",dataType = "PipelineCreateVO")
|
|
|
+ @ApiImplicitParam(name = "pipelineCreateVO", value = "流水线创建配置信息",dataType = "PipelineCreateVO",paramType = "body")
|
|
|
@PostMapping
|
|
|
public Response createPipelineConfig(@RequestBody PipelineCreateVO pipelineCreateVO){
|
|
|
pipelineService.createPipelineConfig(pipelineCreateVO);
|
|
|
@@ -77,9 +77,9 @@ public class PipelineController {
|
|
|
@PutMapping("/config")
|
|
|
@ApiOperation(value = "保存修改一条流水线的json配置信息", httpMethod = "PUT")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
|
- @ApiImplicitParam(name = "pipelineId", dataType = "int"),
|
|
|
- @ApiImplicitParam(name = "configJson", dataType = "String")
|
|
|
+ @ApiImplicitParam(name = "projectId", dataType = "int",paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "pipelineId", dataType = "int",paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "configJson", dataType = "String",paramType = "query")
|
|
|
})
|
|
|
public Response savePipelineConfig(@RequestParam("projectId")Integer projectId,
|
|
|
@RequestParam("pipelineId")Integer pipelineId,
|
|
|
@@ -91,8 +91,8 @@ public class PipelineController {
|
|
|
|
|
|
@ApiOperation(value = "删除一条流水线", httpMethod = "DELETE")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
|
- @ApiImplicitParam(name = "pipelineId", dataType = "int"),
|
|
|
+ @ApiImplicitParam(name = "projectId", dataType = "int",paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "pipelineId", dataType = "int",paramType = "query"),
|
|
|
})
|
|
|
@DeleteMapping
|
|
|
public Response deletePipelineInfo(Integer projectId,Integer pipelineId){
|