I am trying to automate this work through  groovy script. On my jenkins 
master I have more than 200 jobs where I want to enable bitbucket trigger, 
How can I do that with groovy script. Please help.

I already tried this but it din't work.

for(item in Hudson.instance.items){
    
item.addTrigger(com.cloudbees.jenkins.plugins.BitBucketTrigger$DescriptorImpl)

  }

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/eb485f86-e93e-46a3-9a68-37fccfb07ea0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to