Automatic Retry for Bamboo

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Builds
    • None
    • 6
    • 3

      Problem Definition

      Currently, there is no feature in bamboo to perform automatic retry of failed incomplete builds/jobs or rerun the entire build automatically.

      Suggested Solution

      Introduce a feature to schedule the automatic restart of failed or incomplete jobs. If a plan continues to fail, even after multiple retries of failed or incomplete jobs multiple times, the feature can schedule a complete rerun of the entire build.
      Also, has the option to set a number of tries to trigger the failed or incomplete builds/jobs.

      Workaround

      Currently, this can be implemented by utilizing the scripting/coding.
      For example:

      Using REST Call for checking build status:

      curl --user <user-name>:<password> -X GET http://robhit-proxy.com/rest/api/latest/result/ATP-ATA/latest
      
      # Here "ATP-ATA" is the key of the plan
      

      Then using REST Call to trigger a build:

      curl --user <user-name>:<password> -X PUT http://robhit-proxy.com/rest/api/latest/queue/ATP-ATA-buildNumber
      
      # Here "ATP-ATA" is the key of the plan
      

            Assignee:
            Unassigned
            Reporter:
            Robhit Saxena (Inactive)
            Votes:
            81 Vote for this issue
            Watchers:
            44 Start watching this issue

              Created:
              Updated: