0

I have to cancel the specific builds of a given job (already running or queued). Build numbers and job name are given as input.

How do I get specific job and all its build and then cancel them using groovy script?

user3540481
  • 221
  • 3
  • 13
  • https://stackoverflow.com/questions/12305244/cancel-queued-builds-and-aborting-executing-builds-using-groovy-for-jenkins. This might help you. – hariK May 22 '19 at 12:32
  • Possible duplicate of [Cancel queued builds and aborting executing builds using Groovy for Jenkins](https://stackoverflow.com/questions/12305244/cancel-queued-builds-and-aborting-executing-builds-using-groovy-for-jenkins) – hakamairi May 28 '19 at 10:07

0 Answers0