Closed nickbroon closed 8 years ago
I can make a pr for this but it only works for queued items at the moment. I have not found a way to cancel a running jobs yet.
I think cancelling queued items is sufficient.
Figured out how to cancel running jobs too!
Resolved by #83
Released in 1.7.0
If a PR is updated (which might happen often if rebuild if target branch changes option is used, or builds take a long time) it would be better to search the build queue for any queued jobs matching that PR and either update it or remove the queued job before adding a new one. That is to say there should only be one queued build per PR, as only the most recent is usually of interest. There are API that should make this possible, that can be called before
job.scheduleBuild2
.isInQueue
andgetQueueItem
look the most relevant.