Stopping Jenkins job in case newer one is started

后端 未结 3 1697
难免孤独
难免孤独 2021-01-04 21:12

Is it possible to specify that, in case on job (A) is triggered more than once, that previous jobs are removed from queue, and only latest one is left in queue or started if

3条回答
  •  暖寄归人
    2021-01-04 22:07

    You can do it with a system Groovy Script run via Groovy Script Plugin. Such a script has direct access to Jenkins via its programming API. I do not see any other way.

提交回复
热议问题