This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Groovy and the fly likes Hudson/Jenkins Groovy script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Hudson/Jenkins Groovy script" Watch "Hudson/Jenkins Groovy script" New topic

Hudson/Jenkins Groovy script

James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 80
Is it possible to cancel a running job via a Groovy script if a condition is met? If so, where can I find an example? I would like to have jobs always check to see other jobs are running and if so, abort. I have to do it with Groovy and not a plug-in. Any help would be greatly appreciated.

I agree. Here's the link:
subject: Hudson/Jenkins Groovy script
It's not a secret anymore!