I've never used the ConfigSlicer, but you might be able to use a Groovy script,
run from the Jenkins script console, to look through the various Jenkins
objects. There are several samples here:
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
I created a simple one to look through all my jobs, find the ones that are
archiving artifacts, and print out their log-rotator settings:
import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
for(item in Hudson.instance.items) {
println("\njob: $item.name")
println("--------------------------------")
for (publisher in item.publishers) {
String publisher_key=publisher.key
if (publisher_key.contains("hudson.tasks.ArtifactArchiver")) {
println "Artifacts are being archived for this job."
if (item.logRotator){
println "Days to keep builds :
"+item.logRotator.daysToKeep
println "Max # of builds to keep :
"+item.logRotator.numToKeep
println "Days to keep artifacts :
"+item.logRotator.artifactDaysToKeep
println "Max # of builds to keep with artifacts:
"+item.logRotator.artifactNumToKeep
} else {
println "Discard old builds is not set."
}
}
}
println ""
}
Chris Williams
From: [email protected]
[mailto:[email protected]] On Behalf Of Merrow, Frank
Sent: Wednesday, February 15, 2012 3:14 PM
To: [email protected]
Subject: How do folks look at parameters/settings accross "all projects"?
So we have 100+ projects and growing fast . . .
They are all mostly the same, but changes creep in when folks debug or whatever.
What we'd really like to be able to do is to look at all the projects at once .
. .
The Config Slicer is heading in the right direction, but it only does a small
sub-set of the "universe of all parameters" . . . plus we would like to be able
to ask questions like . . . . for all jobs configured with email-ext, do they
all have "Still Failing" defined? Unless Slicer radically expands, it is
doubtful Slicer will ever handle a question like that.
I am looking at options like a Windows application to scrounge through the
project xml files . . . or perhaps importing all the project xml files into a
SQL database . . . SOMETHING to put them all in a form where they can be looked
at as a group.
Surely others have faced this problem before . . . are there any existing tools
out there for dealing with these issues?
I don't want to solve again what I assume is a problem that has already been
solved.
Frank