Démarré par l'utilisateur admin
java.lang.IllegalArgumentException
at org.kohsuke.asm5.ClassReader.<init>(ClassReader.java:170)
at org.kohsuke.asm5.ClassReader.<init>(ClassReader.java:153)
at org.jenkinsci.bytecode.helper.ClassLoadingReferenceTypeHierachyReader.reader(ClassLoadingReferenceTypeHierachyReader.java:64)
at org.jenkinsci.bytecode.helper.TypeHierarchyReader.hierarchyOf(TypeHierarchyReader.java:176)
at org.jenkinsci.bytecode.helper.ClassLoadingReferenceTypeHierachyReader.hierarchyOf(ClassLoadingReferenceTypeHierachyReader.java:39)
at org.jenkinsci.bytecode.helper.TypeHierarchyReader$TypeHierarchy.isAssignableFrom(TypeHierarchyReader.java:321)
at org.jenkinsci.bytecode.helper.TypeHierarchyReader$TypeHierarchy.isAssignableFromAnyInterfaceImplementedBy(TypeHierarchyReader.java:329)
This file contains 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 source, ASCII text | |
import org.apache.commons.io.FileUtils; | |
import org.junit.Before; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.TemporaryFolder; | |
import javax.annotation.Nonnull; | |
import java.io.File; | |
import java.io.IOException; |
This file contains 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
import groovy.json.* | |
def slurper = new groovy.json.JsonSlurper() | |
def result = slurper.parse(new File('jvms.json')) | |
def vget(def map, def key) { | |
map.get(key) ?: "0" | |
} | |
final def JVM_VERSIONS = ["1.5", "1.6", "1.7", "1.8", "1.9"] |
This file contains 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 generatedItemNames = | |
Jenkins.instance.getExtensionList('javaposse.jobdsl.plugin.DescriptorImpl')[0].generatedJobMap.keySet() | |
def adminItems = Jenkins.instance.items | |
.findAll { it.name.startsWith('admin-') || it.name.startsWith('forge-') || it.name.contains('marmotte') } | |
.collect { it.name } | |
def nonDslized = adminItems | |
.findAll { !generatedItemNames.contains(it) } |
This file contains 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 someMap = [ | |
'key1': "value", | |
'key2': 142.1 | |
] | |
def json = new groovy.json.JsonBuilder() | |
json rootKey: someMap | |
println "json output: " |
This file contains 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
{ | |
"busyExecutors": 0, | |
"computer": [ | |
{ | |
"actions": [], | |
"displayName": "maître", | |
"executors": [ | |
{}, | |
{} | |
], |
This file contains 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
cat repos.jenkins| jq -r '.[] | "\(.name) \(.has_issues)"' | grep -e '-plugin' | grep true | sort | sed 's/ true//' | |
allure-plugin | |
antexec-plugin | |
appdynamics-plugin | |
archived-artifact-url-viewer-plugin | |
artifact-promotion-plugin | |
audit2db-plugin | |
aws-beanstalk-publisher-plugin | |
aws-credentials-plugin | |
azure-publishersettings-credentials-plugin |
This file contains 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
#!/bin/bash | |
NODECOUNT=2 | |
SWARM_DISCOVERY="token://$(docker run --rm swarm create)" | |
DRIVER="--driver digitalocean --digitalocean-access-token="$(cat ~/.docker/digitaloceantoken) | |
#DRIVER="--driver virtualbox" | |
#DIGITALOCEAN_SIZE=64gb | |
docker-machine create \ |
This file contains 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
// Quick & certainly fragile script to gather informations from a docker swarm daemon /info | |
// Cf. https://github.com/docker/swarm/issues/735 for the clean way some day | |
import groovy.json.* | |
def swarmInfoUrl = 'http://sv-t-vnl-ic-swarm:3375/info' | |
def graphiteHost = 'sv-t-vnl-forge-metrics' | |
def graphitePort = 2003 | |
def nodeReservedMemoryField = 'reservedmemory' | |
def nodeTotalMemoryField = 'totalmemory' |
This file contains 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 numberOfHoursBack = 7*24 | |
def totalBuildTime = | |
Jenkins.instance.getItems(Job.class).collect { job -> | |
job.getBuilds().byTimestamp(System.currentTimeMillis()-numberOfHoursBack*60*60*1000, System.currentTimeMillis()) | |
} | |
.flatten() | |
.collect { build -> build.getDuration() } | |
.sum() |
NewerOlder