Currently pipeline execution api returns pipeline summary of the give executionID but in the below cases there is no flag available to identify which are the stages retried to calculate the overall execution time of all the stages executed in the retry.
Scenarios:
* The entire pipeline is retried for a given PR.
* Only last failed stage was retried for a given PR.
In both cases response has huge response for all the stages, including previously successfully completed stages execution times so we need to identify which are the stages actually retried (with a retry flag?). I see isRerun flag being set as false in pipelineExecutionSummary even for a manual rerun which is misleading in case of entire pipeline was retried. We need a top level flag to identify retried pipelines.