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