Submit Your Ideas

We want to hear from you - vote for the features and improvements you'd most like to see, or submit your own ideas if you don't find them already listed.

Auto-cancel builds for default branch

Originally asked here:

We would like auto-cancel to apply to the default branch, specifically because we have a deploy action associated with it. The deploy is slow and multiple builds are often racing with each other and we occasionally get an older build that finishes after a newer one, leaving us with older code deployed. (This is only for a staging environment deploy in our case though.)

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Feb 5 2018
  • Future consideration
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    07 Nov 23:52

    I agree with the original poster. Or, something else that might be nice in the meantime is the ability to auto-cancel jobs are in a Holding status after X of them are in that status. Meaning, We have a bunch of builds that are awaiting prod - since they're not auto-cancelling, i'll end up with a large number of jobs waiting to be promoted to production. My suggestion is to only hang onto the last X number (3, 5, 10) of them, and cancel the rest since it's very unlikely that we'll ever promote such an old build.