Expose re-run metadata and template reference data as pipeline expressions
E
Evergreen Iguana
We would like Harness to expose two categories of execution data as <+...> expressions. Both are already tracked by Harness and returned via the API, but neither is available as an expression today, so we cannot use them in notifications or conditional logic without adding a shell-script step that calls the API.
Request 1: Re-run metadata
<+pipeline.isRerun>
<+pipeline.rerunInfo.rootExecutionId>
<+pipeline.rerunInfo.rootTriggerType>
<+pipeline.rerunInfo.prevExecutionId>
<+pipeline.rerunInfo.prevTriggerType>
Request 2: Template reference metadata
<+pipeline.template.templateRef> / .versionLabel / .templateScope
<+stage.template.templateRef> / .versionLabel
<+step.template.templateRef> / .versionLabel
<+stepGroup.template.templateRef> / .versionLabel