Cancel pipeline as soon as a newer version comes in #6764
-
|
I have a rather expensive CI pipeline for PRs, currently they are configured as Is there a way to cancel the previous pipeline run when a new one comes in? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
for reference, looking to achieve https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency |
Beta Was this translation helpful? Give feedback.
-
|
I don't think so. Assuming that you are using the Concourse PR resource, it might be possible to modify it to issue a query to the ATC and send an abort command (same as Pointing out the obvious just to cover all possibilities: it it also always possible for the user to issue |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, tentative plan right now is to write a |
Beta Was this translation helpful? Give feedback.
-
|
Presumably it wouldn't be against the grain to honour the revisions as reported by the resource, and thus cancel whichever builds depend on a revision that no longer exists. It would then behoove a resource such as the PR one (or the git resource itself) to not report orphaned commits as revisions. Just thinking out loud here. Maybe there's some gotcha to this. |
Beta Was this translation helpful? Give feedback.
-
|
Just came across this through a notification rabbit hole. |
Beta Was this translation helpful? Give feedback.
Just came across this through a notification rabbit hole.
For anyone wondering, this currently isn't a feature in Concourse. I think this would be a great thing to add. Anyone is free to take this on and make a PR implementing this. Probably some kind of field on the job key, at the same level as
plan.