Skip to content

Instantly share code, notes, and snippets.

🌏
globe trotter

Kohsuke Kawaguchi kohsuke

🌏
globe trotter
Block or report user

Report or block kohsuke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kohsuke
kohsuke / stuck.log
Last active Aug 6, 2019
With surefire 2.20.1
View stuck.log
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[INFO] Scanning for projects...
[INFO]
View release.log
% mvn test -Dtest=jenkins.triggers.TriggerTest
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'servers.server.id' must be unique but found duplicate server with id jenkinsci-cert-snapshot @ /home/kohsuke/.m2/settings.xml
[WARNING]
[INFO] Scanning for projects...
View diff.patch
diff --git a/distribution/client/package-lock.json b/distribution/client/package-lock.json
index d6222a0..d45aeee 100644
--- a/distribution/client/package-lock.json
+++ b/distribution/client/package-lock.json
@@ -6756,27 +6756,11 @@
}
},
"original": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/original/-/original-1.0.0.tgz",
@kohsuke
kohsuke / tree
Last active May 21, 2018
failure-0521.log
View tree
[INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] [INFO] Forking Jenkins cli 2.123
[INFO] [INFO] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[INFO] [INFO]
[INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:display-info (display-info) @ cli ---
[INFO] [INFO] Maven Version: 3.5.3
[INFO] [INFO] JDK Version: 1.8.0_144 normalized as: 1.8.0-144
[INFO] [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 4.4.0-121-generic
[INFO] [INFO]
[INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (display-info) @ cli ---
View timeCounting.groovy
import java.util.concurrent.TimeUnit;
def c = 0;
def w = TimeUnit.DAYS.toMillis(3)
def threshold = new Date().time - w
Jenkins.instance.getAllItems(Job.class).each { j ->
for (b=j.lastBuild; b!=null; b=b.previousBuild) {
if (b.timeInMillis<threshold) break;
c += b.duration;
@kohsuke
kohsuke / Jenkins.java
Created Sep 2, 2017
Failure indicating the remoting is overridden
View Jenkins.java
// TODO pending move to standard blacklist, or API to append filter
if (System.getProperty(ClassFilter.FILE_OVERRIDE_LOCATION_PROPERTY) == null) { // not using SystemProperties since ClassFilter does not either
try {
Field blacklistPatternsF = ClassFilter.DEFAULT.getClass().getDeclaredField("blacklistPatterns");
blacklistPatternsF.setAccessible(true);
Object[] blacklistPatternsA = (Object[]) blacklistPatternsF.get(ClassFilter.DEFAULT); // <<-- Line 911
boolean found = false;
for (int i = 0; i < blacklistPatternsA.length; i++) {
if (blacklistPatternsA[i] instanceof Pattern) {
View gist:2b291ddd5b9ea2975a0fcaf52b8561bb
java.lang.IllegalStateException: No WEB-INF/jars
at jenkins.bootstrap.Bootstrap.buildCoreClassLoader(Bootstrap.java:160)
at jenkins.bootstrap.Bootstrap.contextInitialized(Bootstrap.java:94)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:890)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:853)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:357)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
View gist:c3fa1cc1ef4e8a5f7341d25440c3136a
@Issue("JENKINS-38268")
@Test
void closureLocalVariable() {
assert evalCPS('''
def x = { y=3 }
x()
return y
''') == 3
}
View docker-gc.sh
#!/bin/bash
# delete files occupied by the finished containers
sudo docker rm $(sudo docker ps -a | grep Exit| cut -f1 -d' ')
# delete dangling images
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
View gist:2e181af21ff50e419c8570e0d827c965
gcgs2_1 | 2017-05-09 16:37:52.886:WARN:oejs.HttpChannel:qtp1226204845-15: /uploadSpool
gcgs2_1 | java.io.IOException: Request GET http://proxy:9200//heads/head/repo0 HTTP/1.1 yielded text/html, should be json: HTTP/1.0 503 Service Unavailable
gcgs2_1 | at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:188)
gcgs2_1 | at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:58)
gcgs2_1 | at com.cloudbees.analytics.storage.elastic.ElasticsearchStorage$1.get(ElasticsearchStorage.java:168)
gcgs2_1 | at com.cloudbees.analytics.cda.gcgs.storage.es.EsHeadSetStorage.load(EsHeadSetStorage.java:23)
gcgs2_1 | at com.cloudbees.analytics.cda.gcgs.Application.doUpload(Application.java:46)
gcgs2_1 | at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
gcgs2_1 | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
gcgs2_1 | at org.
You can’t perform that action at this time.