...
|
...
|
@@ -40,7 +40,7 @@ public class DockerBuildCtrl { |
|
|
|
|
|
}
|
|
|
model.addAttribute("environments", ProjectEnvironment.getDockerEnvironments());
|
|
|
model.addAttribute("projectJobTypes", ProjectEnvironment.getDockerProjectJobTypes());
|
|
|
model.addAttribute("projectTypes", ProjectEnvironment.getDockerProjectTypes());
|
|
|
return new ModelAndView("project/docker_project");
|
|
|
}
|
|
|
|
...
|
...
|
@@ -81,11 +81,11 @@ public class DockerBuildCtrl { |
|
|
*/
|
|
|
@RequestMapping(value = "/getProjects")
|
|
|
@ResponseBody
|
|
|
public String getProjects(String projectJobType) {
|
|
|
public String getProjects(String projectType) {
|
|
|
try {
|
|
|
Map map = new HashMap<>();
|
|
|
map.put("projectJobType",projectJobType);
|
|
|
BaseResponse response=httpRestClient.defaultGet("/dockerProject/getDockerProjectByJobType", BaseResponse.class, map);
|
|
|
map.put("projectType",projectType);
|
|
|
BaseResponse response=httpRestClient.defaultGet("/dockerProject/getDockerProjectByProjectType", BaseResponse.class, map);
|
|
|
return JSONArray.toJSON(response.getData()).toString();
|
|
|
} catch (Exception ex) {
|
|
|
return "failed";
|
...
|
...
|
@@ -161,7 +161,9 @@ public class DockerBuildCtrl { |
|
|
|
|
|
|
|
|
@RequestMapping(value = "/toDockerInfoList")
|
|
|
public ModelAndView toDockerInfoList(DockerJenkinsReq dockerJenkinsReq) {
|
|
|
public ModelAndView toDockerInfoList(Model model,DockerJenkinsReq dockerJenkinsReq) {
|
|
|
model.addAttribute("projectTypes", ProjectEnvironment.getDockerProjectTypes());
|
|
|
model.addAttribute("projectJobTypes", httpRestClient.defaultGet("/dockerProject/getDockerProjectJobType",BaseResponse.class).getData());
|
|
|
return new ModelAndView("project/docker_info");
|
|
|
}
|
|
|
|
...
|
...
|
|