I hereby claim:
- I am sasjo on github.
- I am sasjo (https://keybase.io/sasjo) on keybase.
- I have a public key ASC04ELMGKRky7ms-MBEKa3T8NStMhLjZa8VrWJpSjQIvwo
To claim this, I am signing this object:
@GrabResolver(name='mirror', root='http://repository/nexus/content/groups/public') | |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1') | |
import groovyx.net.http.* | |
import static groovyx.net.http.ContentType.* | |
import static groovyx.net.http.Method.* | |
import org.apache.http.impl.conn.PoolingClientConnectionManager | |
import org.apache.http.params.HttpParams | |
import org.apache.http.client.HttpClient | |
import org.apache.http.impl.client.DefaultHttpClient |
Jenkins.instance.queue.items.findAll { !it.task.name.contains("Extenda") }.each { | |
println "Cancel ${it.task.name}" | |
Jenkins.instance.queue.cancel(it.task) | |
} | |
Jenkins.instance.items.each { | |
stopJobs(it) | |
} | |
def stopJobs(job) { | |
if (job in jenkins.branch.OrganizationFolder) { | |
// Git behaves well so no need to traverse it. |
I hereby claim:
To claim this, I am signing this object: