Support parameter interpolation for max_auto_reruns field
b
bruce.hoang@alayacare.com
Currently, the max_auto_reruns field in CircleCI run steps only accepts hardcoded integer values (1-5). It does not support parameter interpolation using the << parameters.parameter-name >> syntax, even though the parameter is defined as an integer type.
Expected Behavior:
The max_auto_reruns field should support parameter interpolation just like other integer-typed fields in CircleCI config (e.g., parallelism, resource_class counts, etc.).
Use Cases:
- Branch-based retry strategies: More automatic reruns on main branch to ensure deployments succeed, fewer retries on feature branches
- Reusable orbs: Allow orb consumers to customize retry behavior without modifying orb code
- Environment-specific configs: Different retry settings for production vs staging environments
- Job-type variations: Different retry counts for unit tests vs integration tests