Skip to content

Instantly share code, notes, and snippets.

View gist:1be42a79a9d75cfe6bb38f867e26e052
com.google.inject.internal.guava.collect.$ComputationException: java.lang.IllegalArgumentException
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:397)
at com.google.inject.internal.util.StackTraceElements.forMember(StackTraceElements.java:56)
at com.google.inject.internal.Errors.formatSource(Errors.java:703)
at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:733)
at com.google.inject.internal.Errors.formatSource(Errors.java:697)
at com.google.inject.internal.Errors.format(Errors.java:568)
at com.google.inject.ProvisionException.getMessage(ProvisionException.java:61)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)
at java.lang.Throwable.toString(Throwable.java:480)
View script
video 1
create a new repo
push to remote repo
#streaming push to remote repo
#run a job
#stop streaming to remote repo
pull from remote repo to 2
video 2
start server on 1
View subclass with auth cache
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,
View jenkins client extension
static class QJenkins extends JenkinsHttpClient {
public QJenkins(URI uri, String username, String password) throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException {
super(uri, addAuthentication(HttpClients.custom().setSSLSocketFactory(
new SSLConnectionSocketFactory(
new SSLContextBuilder().loadTrustMaterial(null,
new TrustStrategy() {
@Override
public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException {
View sams
[
"JenkinsOneopsPlugin@1.0",
"JenkinsOneopsPlugin@1.0.3",
"JenkinsOneopsPlugin@1.2.50",
"JenkinsRisePlugin@0.0.2-SNAPSHOT",
"PrioritySorter@1.3",
"PrioritySorter@2.8",
"ant@1.2",
"build-failure-analyzer@1.5.0",
"build-failure-analyzer@1.9.1",
View cust prom
[
"JenkinsOneopsPlugin@1.0",
"JenkinsOneopsPlugin@1.0.3",
"JenkinsOneopsPlugin@1.2.50",
"PrioritySorter@1.3",
"PrioritySorter@2.8",
"build-failure-analyzer@1.5.0",
"build-failure-analyzer@1.9.1",
"build-pipeline-plugin@1.3.3",
"email-ext@2.24.1",
View cat dev
[
"JenkinsOneopsPlugin@1.0",
"JenkinsOneopsPlugin@1.0.3",
"JenkinsOneopsPlugin@1.2.50",
"JenkinsOneopsPlugin@1.2.54",
"JenkinsRisePlugin@0.0.2-SNAPSHOT",
"PrioritySorter@1.3",
"PrioritySorter@2.8",
"build-failure-analyzer@1.5.0",
"build-failure-analyzer@1.9.1",
View canada
[
"JenkinsOneopsPlugin@1.0",
"JenkinsOneopsPlugin@1.0.3",
"PrioritySorter@1.3",
"PrioritySorter@2.8",
"build-failure-analyzer@1.5.0",
"build-failure-analyzer@1.9.1",
"build-pipeline-plugin@1.3.3",
"email-ext@2.33",
"email-ext@2.38.1",
View asda
[
"PrioritySorter@2.8",
"build-failure-analyzer@1.9.1",
"build-pipeline-plugin@1.3.3",
"email-ext@2.38.1",
"envinject@1.89",
"git@2.2.5",
"github@1.9.1",
"groovy-postbuild@1.10",
"groovy@1.20",
View gist:28b36c4b864d51af3ce97154ba781087
{"time":"2016-04-26T14:28:31.773Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"proxy response 200"}
{"time":"2016-04-26T14:28:31.773Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"10.65.74.7 - - [26/Apr/2016:14:28:31 +0000] \"GET /d/deep-extend/_attachments/deep-extend-0.4.1.tgz HTTP/1.1\" 200 - \"install\" \"npm/3.8.1 node/v4.2.4 linux x64\" \"application/x-tar, application/vnd.github+json; q=0.1\" 1 ms"}
{"time":"2016-04-26T14:28:31.788Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"package read handler; package=/isparta"}
{"time":"2016-04-26T14:28:31.866Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"forwarding 200 response from couchdb"}
{"time":"2016-04-26T14:28:31.868Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"10.65.74.8 - - [26/Apr/2016:14:28:31 +0000] \"GET /isparta HTTP/1.1\" 200 54316 \"i
You can’t perform that action at this time.