Hi,

I need to bulk modify Gradle switches in all Jobs using Gradle build
steps. For the simple case, I am able to identify Gradle build steps
with the following code:

for(item in Hudson.instance.items) {
  if(item instanceof FreeStyleProject) {
    println("JOB : "+item.name);
    for (builder in item.builders){
      println(">> "+builder);
      if (builder instanceof Gradle) {
        println(">>GRADLE BUILDER");
        println(">>Description : "+builder.description);
        println(">>Tasks : "+builder.tasks);
        println(">>Switches : "+builder.switches);
      }
    }
    println("\n=======\n");
  }
}

However, we also use
org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder and
org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder
a lot (because we need to distinguish between ANT and Gradle builds),
which surround the Gradle build steps.

How can I also find the Gradle build steps wrapped inside a conditional
build step?

Thanks...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/557976BE.1020609%40recommind.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to