So I'm trying to use the Flexible publish plugin but cannot get the groovy 
script to run

I'm using folders so the sample given 
https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin in this 
page to list available publishers does not work.

If I create a top level job and attach a Nunit Report post build task to 
it, then I can use the script in the page linked above to move the 
publisher to a build step.

Analogous steps dont work for projects in folder and I'm stumped.
So in the console I have

import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*

def job = hudson.model.Hudson.instance.getItem('Aditi.Common')
println(job.getAllJobs());

for ( j in job.getAllJobs()) {
  println(j)
  list j    
}

This produces:

[hudson.model.FreeStyleProject@50865a[Aditi.Common/Aditi.SignatureAuth], 
hudson.model.FreeStyleProject@a4a9f4[Aditi.Common/Debug CI build]]
hudson.model.FreeStyleProject@50865a[Aditi.Common/Aditi.SignatureAuth]
hudson.model.FreeStyleProject@a4a9f4[Aditi.Common/Debug CI build]



however, the list j does not seem to do anything.

Can anyone help?

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to