Build A is in progress. Build B is in the queue. How to (automatically/programmatically) set the build B and like B to cancel currently running build?
Yes this is quiet period like question, but the idea is to cancel the currently running job and execute only the last one.