This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class QJenkins extends JenkinsHttpClient { | |
AuthCache authCache = new BasicAuthCache(); | |
BasicScheme basicAuth = new BasicScheme(); | |
public QJenkins(URI uri, String username, String password) throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException { | |
super(uri, addAuthentication(HttpClients.custom().setSSLSocketFactory( | |
new SSLConnectionSocketFactory( | |
new SSLContextBuilder().loadTrustMaterial(null, |