Hello guys, I am pretty new to jenkins. I have encountered a problem and need your kind help :p
I have setup a project, lets say project A. This project contains a certain project B as part of it(via "trigger/call builds on other projects" with "Block until the triggered projects finish their builds" option checked). I would like to fail the ongoing run of project B when I hit the little cancel button(<server>/job/#projectA#/#run#/stop) of project A. I browsed the job configuration page but found no solution. So my question is: 1) is there sort of hudson api(like cancel event listener) I can use to compose a groovy script and do the job gracefully? 2) how shall I get the subprojects of a job programmatically? I have checked the getSubTasks method( http://javadoc.jenkins-ci.org/hudson/model/AbstractProject.html#getSubTasks()) but failed. Thanks -- 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. For more options, visit https://groups.google.com/groups/opt_out.