Search in sources :

Example 1 with JenkinsCasStore

use of org.platformlayer.ops.cas.jenkins.JenkinsCasStore in project platformlayer by platformlayer.

the class CasStoreHelper method buildJenkins.

private static JenkinsCasStore buildJenkins(String baseUrl) {
    HttpClient httpClient = new DefaultHttpClient();
    JenkinsClient jenkinsClient;
    try {
        jenkinsClient = new JenkinsClient(httpClient, new URI(baseUrl));
    } catch (URISyntaxException e) {
        throw new IllegalArgumentException("Error parsing URI", e);
    }
    return new JenkinsCasStore(new CasStoreInfo(false), jenkinsClient);
}
Also used : CasStoreInfo(org.platformlayer.cas.CasStoreInfo) JenkinsClient(org.platformlayer.ops.cas.jenkins.JenkinsClient) JenkinsCasStore(org.platformlayer.ops.cas.jenkins.JenkinsCasStore) DefaultHttpClient(org.apache.http.impl.client.DefaultHttpClient) HttpClient(org.apache.http.client.HttpClient) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI) DefaultHttpClient(org.apache.http.impl.client.DefaultHttpClient)

Aggregations

URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 HttpClient (org.apache.http.client.HttpClient)1 DefaultHttpClient (org.apache.http.impl.client.DefaultHttpClient)1 CasStoreInfo (org.platformlayer.cas.CasStoreInfo)1 JenkinsCasStore (org.platformlayer.ops.cas.jenkins.JenkinsCasStore)1 JenkinsClient (org.platformlayer.ops.cas.jenkins.JenkinsClient)1