Skip to content

Instantly share code, notes, and snippets.

import jenkins.model.*
import hudson.util.DescribableList
import hudson.tasks.Builder
import hudson.model.Descriptor
import hudson.tasks.Maven
def newMavenName = "Maven 3.0"
def jobs = Jenkins.instance.items
@abayer
abayer / gist:1571567
Created January 6, 2012 17:29
Jenkins installs >= 5, August
1.368: 72
1.369: 97
1.370: 27
1.370-SNAPSHOT (private): 2
1.371: 60
1.371 (private): 2
1.372: 88
1.373: 85
1.374: 165
1.375: 88
27227 total reports seen more than once
1.368: 88
1.369: 137
1.370: 38
1.370-SNAPSHOT (private): 2
1.371: 86
1.371 (private): 2
1.372: 118
1.373: 110
1.374: 220
import jenkins.model.*;
import hudson.model.Fingerprint.RangeSet;
def j = jenkins.model.Jenkins.instance.getItem("job-name");
def r = RangeSet.fromString("121-125", true);
j.getBuilds(r).each { it.delete() }
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath group: 'org.jenkins-ci.tools', name: 'gradle-jpi-plugin', version: '0.1-SNAPSHOT'
}
}
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Volumes/EssEssDee/abayer/src/github/jenkins-related/associated-files-plugin/target/generated-sources/groovy-stubs/main/org/jenkinsci/plugins/associatedfiles/AssociatedFilesPublisher.java:[34,95] > expected
[ERROR] /Volumes/EssEssDee/abayer/src/github/jenkins-related/associated-files-plugin/target/generated-sources/groovy-stubs/main/org/jenkinsci/plugins/associatedfiles/AssociatedFilesPublisher.java:[34,103] ')' expected
[ERROR] /Volumes/EssEssDee/abayer/src/github/jenkins-related/associated-files-plugin/target/generated-sources/groovy-stubs/main/org/jenkinsci/plugins/associatedfiles/AssociatedFilesPublisher.java:[34,110] ';' expected
[ERROR] /Volumes/EssEssDee/abayer/src/github/jenkins-related/associated-files-plugin/target/generated-sources/groovy-stubs/main/org/jenkinsci/plugins/associatedfiles/AssociatedFilesPublisher.java:[34,132] <
INFO] ------------------------------------------------------------------------
[INFO] Building hadoop-mapreduce-client-shuffle 0.23.0-cdh4a1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-site-plugin:3.0:site (default-site) @ hadoop-mapreduce-client-shuffle ---
[INFO] configuring report plugin org.apache.maven.plugins:maven-javadoc-plugin:2.8
[INFO]
[INFO] >>> maven-javadoc-plugin:2.8:aggregate (report:aggregate) @ hadoop-mapreduce-client-shuffle >>>
[ERROR] Java heap space -> [Help 1]
java.lang.OutOfMemoryError: Java heap space
<repositories>
<repository>
<id>cloudera-third-party</id>
<url>https://repository.cloudera.com/content/repositories/third-party/</url>
</repository>
</repositories>
May 25, 2011 10:55:07 AM hudson.model.Hudson$5 onTaskFailed
SEVERE: Failed NullIdDescriptorMonitor.verifyId
java.lang.Error: java.lang.reflect.InvocationTargetException
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:114)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:174)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$4.runTask(Hudson.java:735)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
INFO] Web defaults = jetty default
[INFO] Starting jetty 6.1.1 ...
2011-05-25 09:15:31.009::INFO: jetty-6.1.1
2011-05-25 09:15:31.055::INFO: Extract jar:file:/Users/abayer/.m2/repository/org/jenkins-ci/main/jenkins-war/1.412-groovy-view-SNAPSHOT/jenkins-war-1.412-groovy-view-SNAPSHOT.war!/ to /Users/abayer/src/github/jenkins-related/hw-gv/target/work/webapp
hudson home directory: /Users/abayer/src/github/jenkins-related/hw-gv/./work found at: System.getProperty("HUDSON_HOME")
2011-05-25 09:15:35.884::INFO: Started SelectChannelConnector @ 0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Console reloading is ENABLED. Hit ENTER on the console to restart the context.
May 25, 2011 9:15:36 AM hudson.model.Hudson$5 onAttained
INFO: Started initialization