Package CIserver.rest
Class BuildController
java.lang.Object
CIserver.rest.BuildController
Controller class for serving web content
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilds(org.springframework.ui.Model model) Lists all buildsshowCommitBuild(String commit, org.springframework.ui.Model model) Lists build information of specific build
-
Constructor Details
-
BuildController
public BuildController()
-
-
Method Details
-
builds
Lists all builds- Parameters:
model- model is implicitly sent through GET to server the web content- Returns:
- web content displaying all builds with relevant information
-
showCommitBuild
@GetMapping("/builds/{commit}") public String showCommitBuild(@PathVariable String commit, org.springframework.ui.Model model) Lists build information of specific build- Parameters:
commit- the commit SHA of the build to be displayedmodel- model is implicitly sent through GET to server the web content- Returns:
- web content displaying the build information of the commit
-