Class TargetStepCondition
A workflow option that gates execution of a target's individual step (rather than its whole job) on a platform-evaluated condition expression.
public sealed record TargetStepCondition : IBuildOption, IImplicitTargetDependencyOption
- Inheritance
-
objectTargetStepCondition
- Implements
Constructors
TargetStepCondition(BoolExpr)
A workflow option that gates execution of a target's individual step (rather than its whole job) on a platform-evaluated condition expression.
public TargetStepCondition(BoolExpr Condition)
Parameters
ConditionBoolExprThe condition expression to evaluate. May reference outputs of other targets via Invex.StructuredText.Expressions.JobOutputRef. Those targets are not added as dependencies: declare them with
DependsOn, or workflow resolution logs a warning (the platform can only read outputs of jobs the conditioned job needs).
- See Also
Properties
Condition
The condition expression to evaluate. May reference outputs of other targets via
Invex.StructuredText.Expressions.JobOutputRef. Those targets are not added as dependencies: declare them with
DependsOn, or workflow resolution logs a warning (the platform can only read outputs of jobs the
conditioned job needs).
public BoolExpr Condition { get; init; }
Property Value
- BoolExpr
TargetNames
Gets the names of targets whose outputs are referenced by Condition. Workflow resolution checks that each is a declared dependency of the conditioned target and logs a warning if not.
public IEnumerable<string> TargetNames { get; }
Property Value
- IEnumerable<string>