Skip to content

Instantly share code, notes, and snippets.

View kohsuke's full-sized avatar
🏠
WFH

Kohsuke Kawaguchi kohsuke

🏠
WFH
View GitHub Profile
@kohsuke
kohsuke / gist:3997848
Created November 2, 2012 00:30
Evaluate function
def evaluate(c) {
switch (c.model.name) {
case 'Or':
for (c2 in c.clauses) {
if (evaluate(c2)) {
return true
}
}
return false
case 'And':
diff --git a/webapp/scripts/header/header.js b/webapp/scripts/header/header.js
index 24f8da8..5146545 100644
--- a/webapp/scripts/header/header.js
+++ b/webapp/scripts/header/header.js
@@ -35,4 +35,5 @@ if(window.location.pathname.indexOf('login')== -1){
}
requirejs(['commonNav/apps', 'commonNav/dbs', 'commonNav/builds', 'commonNav/repositories', 'commonNav/services','commonNav/help','status','jquery','jquery-ui','jquery-qtip'],function(){
+ $.noConflict();
});
% bundle exec rake cucumber:aws
/usr/bin/ruby1.8 -S bundle exec cucumber -p aws
Using the aws profile...
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
....F
Leaving the tempdir in tact: /tmp/blimpy_test_29804_29807_bobog
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
..F-
Leaving the tempdir in tact: /tmp/blimpy_test_29804_29807_xqjux
/home/kohsuke/ws/cloudbees/blimpy/lib/blimpy/version.rb:2: warning: already initialized constant VERSION
├── html
│   ├── contactadministrator.vm
│   ├── filtersubscription.vm
│   ├── includes
│   │   ├── emailconstants.vm
│   │   ├── fields
│   │   │   ├── affectsversions.vm
│   │   │   ├── assignee.vm
│   │   │   ├── attachments.vm
│   │   │   ├── changelog.vm
@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
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) {
[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
% 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
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)
@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.