• 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!