@Component public class DefaultBambooClient extends Object implements BambooClient
Constructor and Description |
---|
DefaultBambooClient(com.capitalone.dashboard.util.Supplier<org.springframework.web.client.RestOperations> restOperationsSupplier,
BambooSettings settings) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.http.HttpHeaders |
createHeaders(String userInfo) |
com.capitalone.dashboard.model.Build |
getBuildDetails(String buildUrl,
String instanceUrl)
Fetch full populated build information for a build.
|
Map<BambooJob,Set<com.capitalone.dashboard.model.Build>> |
getInstanceJobs(String instanceUrl)
Finds all of the configured jobs for a given instance and returns the set of
builds for each job.
|
protected String |
getLog(String buildUrl) |
static String |
joinURL(String base,
String... paths) |
protected org.springframework.http.ResponseEntity<String> |
makeRestCall(String sUrl) |
static String |
rebuildJobUrl(String build,
String server) |
@Autowired public DefaultBambooClient(com.capitalone.dashboard.util.Supplier<org.springframework.web.client.RestOperations> restOperationsSupplier, BambooSettings settings)
public Map<BambooJob,Set<com.capitalone.dashboard.model.Build>> getInstanceJobs(String instanceUrl)
BambooClient
getInstanceJobs
in interface BambooClient
instanceUrl
- the URL for the Bamboo instancepublic com.capitalone.dashboard.model.Build getBuildDetails(String buildUrl, String instanceUrl)
BambooClient
getBuildDetails
in interface BambooClient
buildUrl
- the url of the buildpublic static String rebuildJobUrl(String build, String server) throws URISyntaxException, MalformedURLException, UnsupportedEncodingException
protected org.springframework.http.ResponseEntity<String> makeRestCall(String sUrl) throws MalformedURLException
MalformedURLException
protected org.springframework.http.HttpHeaders createHeaders(String userInfo)
public static String joinURL(String base, String... paths) throws MalformedURLException
MalformedURLException
Copyright © 2019 Capital One. All rights reserved.