To disable, can I point to a branch like so?
def job = Jenkins.instance.getItem("job-name/branch-name"); job.disable(); 

And then to enable, maybe it could be achieved also programmatically?
def job = Jenkins.instance.getItem("job-name/branch-name"); job.enable(); 


-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/63a5e368-ff1a-4898-b86f-1eee9536961c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to