This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Environment { | |
String url | |
String name | |
Environment(String name) { | |
this.name = name | |
} | |
} | |
class MyExtension { | |
def project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HashMap<String,String> cfg | |
node() { | |
echo("test") | |
String str = readFile file: '/home/martin/a.config' | |
cfg = getConfig(str) | |
echo(cfg) | |
echo("cfg: "+cfg) | |
} | |
@NonCPS HashMap<String,String> getConfig(String text) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The error here is using "def", grooyv dyslexia I guess | |
// def node | |
node() { | |
echo ("here nothing: "+(new ConfigSlurper().parse("""a="b" """)).a) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Content file:///home/martin/git/workflow-job-definition.git/hang.groovy | |
class MyClass implements Serializable { | |
String name | |
MyClass(String name) { | |
this.name = name | |
} | |
String getName() { | |
return "the name is: "+name | |
} | |
private void writeObject(ObjectOutputStream s) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] | +- org.eclipse.jetty:jetty-server:jar:9.2.13.v20150730:test | |
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:9.2.13.v20150730:test | |
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:9.2.13.v20150730:test | |
[INFO] | +- org.eclipse.jetty:jetty-servlet:jar:9.2.13.v20150730:test | |
[INFO] | | \- org.eclipse.jetty:jetty-security:jar:9.2.13.v20150730:test | |
[INFO] | +- org.eclipse.jetty:jetty-servlets:jar:9.2.13.v20150730:test | |
[INFO] | | +- org.eclipse.jetty:jetty-continuation:jar:9.2.13.v20150730:test | |
[INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.2.13.v20150730:test | |
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:9.2.13.v20150730:test | |
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:9.2.13.v20150730:test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NoSuchFieldError: FIREFOX_2 | |
at org.jvnet.hudson.test.JenkinsRule$WebClient.<init>(JenkinsRule.java:1842) | |
at org.jvnet.hudson.test.JenkinsRule.createWebClient(JenkinsRule.java:1829) | |
at org.jvnet.hudson.test.JenkinsRule.configRoundtrip(JenkinsRule.java:1017) | |
at org.jenkinsci.plugins.workflow.steps.StepConfigTester.configRoundTrip(StepConfigTester.java:65) | |
at jenkins.plugins.http_request.HttpRequestStepRoundTripTest.configRoundTrip(HttpRequestStepRoundTripTest.java:98) | |
at jenkins.plugins.http_request.HttpRequestStepRoundTripTest.basicAuthentication(HttpRequestStepRoundTripTest.java:65) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.net.SocketTimeoutException: Read timed out | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) | |
at java.net.SocketInputStream.read(SocketInputStream.java:170) | |
at java.net.SocketInputStream.read(SocketInputStream.java:141) | |
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139) | |
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155) | |
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:284) | |
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140) | |
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject | |
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) | |
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) | |
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) | |
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) | |
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) | |
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) | |
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) | |
at org.kohsuke.stapler.Stapler.service(Stapler.java:238) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def j = Jenkins.getInstance() | |
def items = j.getItems(hudson.model.Job) | |
for (job in items) { | |
def lastStableBuild = job.getLastStableBuild() | |
println(lastStableBuild.number) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>org.jenkins-ci.plugins</groupId> | |
<artifactId>plugin</artifactId> | |
<version>2.6</version> | |
<relativePath /> | |
</parent> |
OlderNewer