Skip to content

Instantly share code, notes, and snippets.

@jglick
jglick / .gitconfig
Created September 1, 2017 17:47
git out
[alias]
out = !git log --patch-with-stat --irreversible-delete --find-renames @{u}.. > /tmp/out.diff && $EDITOR /tmp/out.diff
@jglick
jglick / JENKINS-41745-proposal.md
Last active August 22, 2017 18:22
Proposal for JENKINS-41745: Remoting-free CLI

Summary

JENKINS-41745: Deprecate the Remoting-based protocol for the Jenkins CLI feature. Enhance the client and server to conveniently perform most existing CLI tasks with simpler and safer protocols.

Goals

… WARNING org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$6 onSuccess
Failed to abort Owner[…/…:… #…]
hudson.remoting.ChannelClosedException: channel is already closed
at hudson.remoting.Channel.send(Channel.java:578)
at hudson.remoting.Request.call(Request.java:130)
at hudson.remoting.Channel.call(Channel.java:780)
at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
at hudson.Launcher$ProcStarter.start(Launcher.java:381)
at hudson.Launcher$ProcStarter.join(Launcher.java:388)
at org.jenkinsci.plugins.docker.workflow.WithContainerStep$Decorator$1.kill(WithContainerStep.java:237)
$ curl -IL http://updates.jenkins-ci.org/download/plugins/workflow-aggregator/2.3/workflow-aggregator.hpi
HTTP/1.1 302 Found
Date: Wed, 31 Aug 2016 14:11:52 GMT
Server: Apache/2.4.7 (Ubuntu)
Location: http://mirrors.jenkins-ci.org/plugins/workflow-aggregator/2.3/workflow-aggregator.hpi
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 302 Found
Date: Wed, 31 Aug 2016 14:11:52 GMT
Server: Apache/2.4.7 (Ubuntu)
@jglick
jglick / multiwrap-demo.groovy
Last active May 4, 2016 18:07
example for sobersabre on #jenkins
def multiwrap(wrappers, body) {
_multiwrap(wrappers, 0, body)
}
def _multiwrap(wrappers, idx, body) {
if (idx == wrappers.size()) {
body()
} else {
wrap(wrappers.get(idx)) {
_multiwrap(wrappers, idx + 1, body)
}
java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/steadystate/css/parser/SACParserCSS3TokenManager.
at org.jacoco.agent.rt.internal_e6e56f0.CoverageTransformer.transform(CoverageTransformer.java:89)
at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
--- a/src/test/java/plugins/JavadocPluginTest.java
+++ b/src/test/java/plugins/JavadocPluginTest.java
@@ -17,7 +17,7 @@
/**
* Feature: Test Javadoc plugin
*/
-@WithPlugins("javadoc")
+@WithPlugins("javadoc@1.4-SNAPSHOT")
public class JavadocPluginTest extends AbstractJUnitTest {
/**
@jglick
jglick / gist:5967997
Created July 10, 2013 16:52
Errors in Zendesk preventing ticket history from being displayed. (Chrome 28)
Unexpected token , SyntaxError: Unexpected token ,
at Object.Function (<anonymous>)
at Object.n.createFunctionContext (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:13:11130)
at Object.n.compile (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:13:9696)
at i (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:13:16998)
at https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:13:17093
at Ember.View.Ember.Object.extend.render (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:16:2554)
at Ember.View.Ember.Object.extend.renderToBuffer (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:16:7339)
at Ember.View.states.inBuffer.appendChild (https://assets.zendesk.com/agent/assets/vendor-9f0fea21af96e71c1c0900be056ff9b1.js:16:13171)
at Ember.View.Ember.Object.extend.invokeForState (https:/
-------------------------------------------------------------------------------
Test set: hudson.model.UpdateSiteTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 14.407 sec <<< FAILURE!
updateDirectlyWithJson(hudson.model.UpdateSiteTest) Time elapsed: 9.668 sec <<< FAILURE!
java.lang.AssertionError: expected:<OK: <div/>> but was:<ERROR: Digest mismatch: WLv8irZifjnDeekE5oOE3i+Drgk= vs 2MRlOHwN1GsWuoAfIxfeyFM9og0= in update site &#039;default&#039;>
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.failNotEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:128)
at org.junit.Assert.assertEquals(Assert.java:147)
diff --git a/features/configure_slaves.feature b/features/configure_slaves.feature
index 80603e6..3b199e4 100644
--- a/features/configure_slaves.feature
+++ b/features/configure_slaves.feature
@@ -6,9 +6,13 @@ Feature: configure slaves
Scenario: Tie a job to a specified label
Given a job
And a dumb slave
+ Then Wait for keypress
When I add the label "test" to the slave