Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way I can re-initiate failed tasks or agent phase in a TFS release?

When a certain task fails in an environment I had to always redeploy the whole environment after fixing the issue. Is there a way I could re-initiate only the failed task or just the phase where the task is failed.

For example: In the screenshot below the last task "Run script *" under "Agent Phase" has failed. I had to re-initiate the whole environment deployment to re-execute the last task which will also executes "Run on Agent" phase as well. This is painful during production release pipeline.

enter image description here

like image 646
Fairoz Avatar asked Mar 03 '23 06:03

Fairoz


1 Answers

Recently the retryCountOnTaskFailure argument was introduced:

- task: <name of task>
  retryCountOnTaskFailure: <max number of retries>
   ...
like image 51
Allan Targino Avatar answered Apr 29 '23 03:04

Allan Targino