Skip to content

Instantly share code, notes, and snippets.

View kohsuke's full-sized avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
[
{
"id": "1884523105",
"type": "PushEvent",
"actor": {
"id": 874715,
"login": "jenkinsadmin",
"gravatar_id": "c61b120bdaedf42832ad4c9e391b3929",
"url": "https://api.github.com/users/jenkinsadmin",
"avatar_url": "https://0.gravatar.com/avatar/c61b120bdaedf42832ad4c9e391b3929?d=https%3A%2F%2Fa248.e.akamai.net%2Fassets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png&r=x"
@kohsuke
kohsuke / gist:7440208
Last active December 28, 2015 04:09
Comparing CSV file from GitHub against the data I obtained from the events API.
% ./compare.groovy
GitHub:7b6d785->7b6d785 Kohsuke:7b6d785->3419fc2 artifactory-plugin
GitHub:c066281->c066281 Kohsuke:c066281->5e85b53 branch-api-plugin
GitHub:220610b->64db20c Kohsuke:220610b->c5bcbfd build-pipeline-plugin
GitHub:437818e->437818e Kohsuke:437818e->a4401ec build-timeout-plugin
GitHub:c662016->c662016 Kohsuke:c662016->6f2347a ci-game-plugin
GitHub:4c8e9aa->4c8e9aa Kohsuke:4c8e9aa->111a3ac clearcase-plugin
GitHub:6be8eec->6be8eec Kohsuke:6be8eec->bd1e8b5 clearcase-ucm-plugin
GitHub:4168346->5627e28 Kohsuke:4168346->5864c75 cloudtest-plugin
GitHub:18a6109->18a6109 Kohsuke:18a6109->0dcb449 collabnet-plugin
@kohsuke
kohsuke / gist:7438914
Last active December 28, 2015 03:59
Affected refs and commits by GitHub events API. Program is in https://github.com/jenkinsci/backend-git-pushf-finder
/usr/local/java6/bin/java -Didea.launcher.port=7541 -Didea.launcher.bin.path=/usr/idea-IU-129.1359/bin -Dfile.encoding=UTF-8 -classpath /usr/local/java6/jre/lib/jsse.jar:/usr/local/java6/jre/lib/plugin.jar:/usr/local/java6/jre/lib/deploy.jar:/usr/local/java6/jre/lib/charsets.jar:/usr/local/java6/jre/lib/resources.jar:/usr/local/java6/jre/lib/rt.jar:/usr/local/java6/jre/lib/jce.jar:/usr/local/java6/jre/lib/management-agent.jar:/usr/local/java6/jre/lib/javaws.jar:/usr/local/java6/jre/lib/ext/localedata.jar:/usr/local/java6/jre/lib/ext/dnsns.jar:/usr/local/java6/jre/lib/ext/sunpkcs11.jar:/usr/local/java6/jre/lib/ext/sunjce_provider.jar:/files/kohsuke/ws/jenkins/20131111-recovery/git-pushf-finder/target/classes:/home/kohsuke/.m2/repository/org/kohsuke/github-api/1.46-SNAPSHOT/github-api-1.46-SNAPSHOT.jar:/home/kohsuke/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/kohsuke/.m2/repository/commons-codec/commons-codec/1.7/commons-codec-1.7.jar:/home/kohsuke/.m2/repository/com/fasterxml/jackso
@kohsuke
kohsuke / gist:7304852
Created November 4, 2013 16:06
Release failure
[INFO] [INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ maven-hpi-plugin ---
[INFO] [INFO] Compiling 25 source files to /home/kohsuke/ws/jenkins/maven-hpi-plugin/target/classes
[INFO] [INFO]
[INFO] [INFO] --- maven-plugin-plugin:3.2:descriptor (mojo-descriptor) @ maven-hpi-plugin ---
[INFO] [ERROR]
[INFO]
[INFO] Artifact Ids of the format maven-___-plugin are reserved for
[INFO] plugins in the Group Id org.apache.maven.plugins
[INFO] Please change your artifactId to the format ___-maven-plugin
[INFO] In the future this error will break the build.
Oct 29, 2013 1:38:25 PM hudson.slaves.NodeProvisioner update
INFO: Started provisioning CloudBees Slave from CloudBees with 1 executors. Remaining excess workload:-0.47829723
Oct 29, 2013 1:38:25 PM hudson.slaves.NodeProvisioner update
FINE: Excess workload 0.52170277 detected. (planned capacity=3.4782963,Qlen=3.999999,idle=0.0&0,total=0m,=0.5)
Oct 29, 2013 1:38:19 PM hudson.slaves.NodeProvisioner update
WARNING: Provisioned slave CloudBees Slave failed to launch
java.lang.RuntimeException: Timeout waiting for slave s-24801ee5 to provision after 900000ms. Task ID:57558ab3-fede-487b-afdb-2d461e3f585e
at com.cloudbees.hudson.service.AcquireSlaveRequest.acquire(AcquireSlaveRequest.java:103)
at com.cloudbees.hudson.service.ProvidoreSwarm.acquire(ProvidoreSwarm.java:81)
at com.cloudbees.hudson.plugins.SwarmCloud$2.call(SwarmCloud.java:155)
% debuild -us -uc -B
dpkg-buildpackage -rfakeroot -D -us -uc -B
dpkg-buildpackage: source package jenkins
dpkg-buildpackage: source version 1.536
dpkg-buildpackage: source changed by Kohsuke Kawaguchi <[email protected]>
dpkg-source --before-build debian
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
[91195.388948] br0: port 1(tap0) entering forwarding state
[91280.260024] BUG: soft lockup - CPU#0 stuck for 22s! [zvol/16:309]
[91280.261103] Modules linked in: xt_conntrack tun usb_storage netconsole configfs nfsd iptable_filter ipt_MASQUERADE xt_comment xt_tcpudp iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables bridge stp llc ip6table_filter ip6_tables x_tables nls_cp437 vfat fat zfs(P) zunicode(P) zavl(P) zcommon(P) znvpair(P) spl zlib_deflate arc4 b43 mac80211 radeon cfg80211 i2c_algo_bit ttm snd_hda_codec_hdmi drm_kms_helper drm snd_hda_codec_realtek ssb btusb bluetooth rfkill mmc_core pcmcia pcspkr i2c_i801 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm i2c_core snd_page_alloc snd_timer applesmc snd ioatdma pcmcia_core input_polldev soundcore shpchp pci_hotplug evdev e1000e iTCO_wdt iTCO_vendor_support i7core_edac edac_core processor button dca nfs nfs_acl auth_rpcgss fscache lockd sunrpc kvm_intel kvm ext4 crc16 jbd2 mbcache sr_mod sd_mod cdrom uhci_hcd ahci libahci libata fir
public class ErrorCase {
public static class Foo<T> {
public void foo(T t) {}
}
public static class Bar<T> extends Foo<List<T>> {
public void foo(List<String> o) {}
}
public static void main(String[] args) {
@kohsuke
kohsuke / details
Created May 11, 2013 21:01
Maven build classloader statistics
Started by user anonymous
Building remotely on fast in workspace /tmp/fast/workspace/fast
Updating https://svn.jenkins-ci.org/trunk/jenkins/test-projects/model-maven-project at revision '2013-05-11T13:59:03.523 -0700'
At revision 40857
no change for https://svn.jenkins-ci.org/trunk/jenkins/test-projects/model-maven-project since the previous build
Parsing POMs
[fast] $ java -cp /tmp/fast/maven3-agent.jar:/usr/maven3/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/maven3 /home/kohsuke/ws/jenkins/remoting/target/remoting-2.24-SNAPSHOT.jar /tmp/fast/maven3-interceptor.jar 39866
<===[JENKINS REMOTING CAPACITY]===>\00\00\00channel started
FINER: fetch3(hudson.maven.ProcessCache$GetSystemProperties)
FINER: prefetch hudson.maven.ProcessCache$GetSystemProperties -> hudson.maven.ProcessCache
├── html
│   ├── contactadministrator.vm
│   ├── filtersubscription.vm
│   ├── includes
│   │   ├── emailconstants.vm
│   │   ├── fields
│   │   │   ├── affectsversions.vm
│   │   │   ├── assignee.vm
│   │   │   ├── attachments.vm
│   │   │   ├── changelog.vm