Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hudson/Jenkins Groovy script

 
James Daniel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Jim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic