Trigger new Jenkins build stopping old build

0

For example, I have a job on Jenkins that has a build in running status, when I run a new build (from the same job) I want the one in running to stop before the new one is run. I don't understand how to get this behavior. When I launch a new build, the previous one stays running, and it's not the behavior I want to be. Can someone tell me what to do? And if so, is it possible to get this mechanism by calling the REST API? Thanks.

antoniocapizzi95

Posted 2019-04-12T11:09:48.647

Reputation: 1

No answers