Skip to content

Instantly share code, notes, and snippets.

View kohsuke's full-sized avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
% cat =mvndd
#!/bin/sh
export MAVEN_OPTS="$MAVEN_OPTS $JAVA_DEBUG_OPTS,suspend=n"
exec mvn "$@"
module Foo
module Bar
class Zot
def hello
puts "Hello from Zot"
end
end
end
end
@kohsuke
kohsuke / gist:7442162
Created November 13, 2013 01:45
recovery to master push
+ for f in '*'
+ echo accurev-plugin.git
accurev-plugin.git
+ pushd accurev-plugin.git
~/ws/jenkins/20131111-recovery/repos/accurev-plugin.git ~/ws/jenkins/20131111-recovery/repos
+ git push git@github.com:jenkinsci/accurev-plugin.git recovery:master
Everything up-to-date
+ popd
~/ws/jenkins/20131111-recovery/repos
+ for f in '*'
@kohsuke
kohsuke / gist:7441446
Created November 13, 2013 00:32
Branch edits
Kohsuke:aeacaf8->61dcb7f git-plugin branch:refs/heads/refactoring
Kohsuke:1ac9a85->bd241e6 json-lib branch:refs/heads/rebase-2.4
Kohsuke:67323c6->fc3c580 perforce-plugin branch:refs/heads/multiple-scm-instatination-fix
Kohsuke:70e0ba9->5a253ab pitmutation-plugin branch:refs/heads/generic-metrics
Kohsuke:fe15a76->2f5e05e prqa-plugin branch:refs/heads/1.2.1
Kohsuke:7e81d63->4dad46b skype-im-plugin branch:refs/heads/v2dev
Kohsuke:b65b0d9->28fc04f stashnotifier-plugin branch:refs/heads/develop
Kohsuke:aae02ab->0512752 subversion-plugin branch:refs/heads/refactoring
Kohsuke:327c4e4->6463c81 transifex-plugin branch:refs/heads/gh-pages
[
{
"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 <kk@kohsuke.org>
dpkg-source --before-build debian
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir