-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
6
-
1
-
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
One use model we have is to make a fix, then do 'Rerun failed/incomplete jobs only'. Often, we have other jobs running, so doing the rerun is not possible without stopping the current build or just waiting. Waiting is tedious, so it would be useful to select 'Rerun only failed/incomplete jobs when current run is finished'.