-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pending builds should cancel previous pending builds of the same pull request #197
Comments
A solution to this problem would probably fix (but at least mitigate) the problem described in #148, namely rewrite of history resulting in the earlier build to fail. Also, it seems like jenkinsci#18 implements this. |
An alternative (and possibly better) implementation could be: Instead of canceling the first build and requeing, the first build builds the updated pull request and no second build is added to the queue. This way, the PR is allowed to keep its position in the queue. |
This seems to duplicate #151. |
I will do some digging to see if we can stop the build when it starts. |
Implemented in latest. |
Awesome @DavidTanner, which version should we upgrade to? Do you have a reference to the commit(s) that implemented this? In master on GitHub it looks like the last commits were in February. |
@DavidTanner How do we make this property enabled? It still queuing up in the build jobs for every new commit. Is it default? |
@madhavc Did you figure this out? |
@robvelor ^^ |
This is most likely a new feature request, not a bug report (I had assumed ghprb does this.. my bad) :
New pending builds should cancel previous pending builds of the same pull request. The same said differently: Today (using 1.15-0 on Jenkins ver. 1.577 here), if someone pushes a new commit on a pull request branch which is already queued / pending to be built, you get 2 pending builds - however I'd assume most people would agree you only really care about the second anyway, and still building the first is a waste of time. If it helps it helps to clarify, here's how my Build Queue looks like right now - the point of this issue is that I'd love the #42 to magically have vanished when the #43 got into the Build Queue:
#43 (pending—Build #32 is already in progress (ETA:N/A)) sha1=origin/pr/14/merge ghprbActualCommit=72ed3d34c8b4ac1aecb2a67dfc9769a6dfba9a30 ghprbActualCommitAuthor=... ghprbActualCommitAuthorEmail=... ghprbTriggerAuthor= ghprbTriggerAuthorEmail= ghprbPullId=14 ghprbTargetBranch=master ghprbSourceBranch=ds-7813 ghprbPullAuthorEmail= ghprbPullDescription=GitHub pull request #14 of commit 72ed3d34c8b4ac1aecb2a67dfc9769a6dfba9a30 automatically merged. ghprbPullTitle=... ghprbPullLink=https://github.com/TemenosDS/DS/pull/14
#42 (pending—Build #32 is already in progress (ETA:N/A)) sha1=origin/pr/14/merge ghprbActualCommit=b58e1e78e353044fbef8f0671e63cc6ed7af500d ghprbActualCommitAuthor=... ghprbActualCommitAuthorEmail=... ghprbTriggerAuthor= ghprbTriggerAuthorEmail= ghprbPullId=14 ghprbTargetBranch=master ghprbSourceBranch=ds-7813 ghprbPullAuthorEmail= ghprbPullDescription=GitHub pull request #14 of commit b58e1e78e353044fbef8f0671e63cc6ed7af500d automatically merged. ghprbPullTitle=... ghprbPullLink=https://github.com/TemenosDS/DS/pull/14
The text was updated successfully, but these errors were encountered: