Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
View gist:8732508
<distributionManagement>
<repository>
<id>maven.jenkins-ci.org</id>
<url>http://maven.jenkins-ci.org:8081/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>maven.jenkins-ci.org</id>
<url>http://maven.jenkins-ci.org:8081/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
View gist:9201718
java.lang.UnsatisfiedLinkError: /usr/lib/libc.so: invalid file format
at jnr.ffi.provider.jffi.NativeLibrary.loadNativeLibraries(NativeLibrary.java:87)
at jnr.ffi.provider.jffi.NativeLibrary.getNativeLibraries(NativeLibrary.java:70)
at jnr.ffi.provider.jffi.NativeLibrary.getSymbolAddress(NativeLibrary.java:49)
at jnr.ffi.provider.jffi.NativeLibrary.findSymbolAddress(NativeLibrary.java:59)
at jnr.ffi.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:117)
at jnr.ffi.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:59)
at jnr.ffi.provider.jffi.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:43)
at jnr.ffi.LibraryLoader.load(LibraryLoader.java:228)
at jnr.ffi.Library.loadLibrary(Library.java:123)
View gist:9644894
Subversion 1.8 failures
SubversionSCMTest>HudsonTestCase.runBare:286->HudsonTestCase.runTest:401->testMultipleRepositoriesSvn17:605->testMultipleRepositories:599->HudsonTestCase.assertLogContains:983 Console output of test0 #2 didn't contain Updating file:///files/kohsuke/ws/jenkins/subversion-plugin/target/hudson9173603239567459537test/trunk:
SubversionSCMTest>HudsonTestCase.runBare:286->HudsonTestCase.runTest:401->testPollingExternalsForFileSvn17:1717->invokeTestPollingExternalsForFile:1734->createWorkingCopy:992->HudsonTestCase.assertBuildStatusSuccess:952->HudsonTestCase.assertBuildStatus:927 unexpected build status; build log was:
-
View gist:9753189

Adding Custom Metric subtype

To implement a new metric subtype, implement ExtensionMetric marker interface and put @MetricExtension on it

@NamedMetric("dac.mansion.foo.bar") @Singleton
public class MyGauge extends Gauge<Integer> implements ExtensionMetric {
     @Override
     public Integer getValue() {
         return queue.size();
     }
@kohsuke
kohsuke / gist:9941699
Created Apr 2, 2014
Unique version numbers
View gist:9941699
0.0.1
0.0.10
0.0.11
0.0.12
0.0.13
0.0.14
0.0.15
0.0.2
0.0.20
0.0.21
View keybase.md

Keybase proof

I hereby claim:

  • I am kohsuke on github.
  • I am kohsuke (https://keybase.io/kohsuke) on keybase.
  • I have a public key whose fingerprint is 150F DE3F 7787 E7D1 1EF4 E12A 9B7D 32F2 D505 82E6

To claim this, I am signing this object:

View gist:11234588
% cat =mvnd
#!/bin/sh
export MAVEN_OPTS="$MAVEN_OPTS $JAVA_DEBUG_OPTS"
exec mvn "$@"
View Daily network utilization of cucumber
kohsuke@cucumber:~$ vnstat -d
eth0 / daily
day rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
05/04/14 11.61 GiB | 151.50 GiB | 163.11 GiB | 15.84 Mbit/s
05/05/14 18.37 GiB | 167.82 GiB | 186.18 GiB | 18.08 Mbit/s
05/06/14 12.54 GiB | 176.53 GiB | 189.07 GiB | 18.36 Mbit/s
05/07/14 13.07 GiB | 169.65 GiB | 182.73 GiB | 17.74 Mbit/s
View gist:374c22e737a77c9b0421
"Computer.threadPoolForRemoting [#1661] : IO ID=752809 : seq#=752808" Id=60820 Group=main BLOCKED on java.lang.Object@18c04f6f owned by "Computer.threadPoolForRemoting [#1667] for Channel to Maven [/home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/bin/java, -Xmx768m, -Xms768m, -client, -cp, /home/jenkins/jenkins-slave/maven3-agent.jar:/home/jenkins/jenkins-slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.5/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /home/jenkins/jenkins-slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.0.5, /home/hudson/jenkins-slave/slave.jar, /home/jenkins/jenkins-slave/maven3-interceptor.jar, /home/jenkins/jenkins-slave/maven3-interceptor-commons.jar, 58881]" Id=61049
at hudson.maven.SplittableBuildListener$2.onMarkFound(SplittableBuildListener.java:120)
- blocked on java.lang.Object@18c04f6f
at jenkins.util.MarkFindingOutputStream.write(MarkFindingOutputStream.java:59)
at java.io.PrintStream.write(PrintStream.java:480)
-
View gist:abb0f0c6f7168dc3c6ca
notice: /Stage[main]/Mirrorbrain::Repos/File[/root/mirrorbrain.key]/ensure: current_value absent, should be file (noop)
notice: /Stage[main]/Mirrorbrain::Repos/File[/etc/apt/sources.list.d/mirrorbrain.list]/ensure: current_value absent, should be file (noop)
notice: /Stage[main]/Mirrorbrain::Repos/Exec[install-key]: Would have triggered 'refresh' from 1 events
notice: /Stage[main]/Mirrorbrain::Repos/Exec[refresh-apt]: Would have triggered 'refresh' from 2 events
notice: Class[Mirrorbrain::Repos]: Would have triggered 'refresh' from 4 events
notice: /Stage[main]/Mirrorbrain::Packages/Package[postgresql-server-dev-8.4]/ensure: current_value purged, should be present (noop)
notice: /Stage[main]/Mirrorbrain::Packages/Package[python-dev]/ensure: current_value purged, should be present (noop)
notice: Class[Mirrorbrain::Packages]: Would have triggered 'refresh' from 2 events
You can’t perform that action at this time.