Stopping Jenkins job in case newer one is started
jenkins, jenkins-plugins
Solution
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.
Problem
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 there are enough free slots? Thanks in advance!