Skip to content

Instantly share code, notes, and snippets.

View flobaader's full-sized avatar
🖥️
always coding

Florian Baader flobaader

🖥️
always coding
View GitHub Profile
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,