Allow an option at Bamboo plan level to fail a running build if a new build has been trigerred

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Plan configuration
    • None
    • 0
    • 1

      Issue Summary

      Currently when a build is running in Bamboo and let's assume the build takes ~3-4 hours to complete, if a next build is passed to the plan there are possible two scenarios.

      • The build starts running ( If concurrency is enabled and agent are available )
      • The build waits in queue

      This might be a problematic scenario where the results of the old build is not required anymore and it consumes resources for more than ~3-4 hours.

      Solution

      There should be an optional parameter in Bamboo Plan configuration to fail the old build immediately if a new build is trigerred.

      Workaround

      • Currently the workaround is to fail the old running build manually from Bamboo UI.
      • We can also use the below REST API end point to fail the build.
        curl -k -u user_id:password -X DELETE http://bambooURL/rest/api/latest/queue/JOB_Key
        

        Refer Bamboo REST API for more details.

            Assignee:
            Unassigned
            Reporter:
            Shashank Kumar
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: