PhaseExecutionContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides context necessary for the execution of a pipeline.
public class PhaseExecutionContext : Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.GraphExecutionContext<Microsoft.TeamFoundation.DistributedTask.Pipelines.Runtime.PhaseInstance>
type PhaseExecutionContext = class
inherit GraphExecutionContext<PhaseInstance>
Public Class PhaseExecutionContext
Inherits GraphExecutionContext(Of PhaseInstance)
- Inheritance
-
PhaseExecutionContext
Constructors
| Name | Description |
|---|---|
| PhaseExecutionContext(StageInstance, PhaseInstance, IDictionary<String,PhaseInstance>, EvaluationOptions) |
Initializes a new |
| PhaseExecutionContext(StageInstance, PhaseInstance, IDictionary<String, PhaseInstance>, PipelineState, ICounterStore, IResourceStore, ITaskStore, IList<IStepProvider>, IPipelineIdGenerator, IPipelineTraceWriter, EvaluationOptions, ExecutionOptions) |
Initializes a new |
| PhaseExecutionContext(StageInstance, PhaseInstance, IList<PhaseInstance>, EvaluationOptions) | |
Properties
| Name | Description |
|---|---|
| CounterStore |
Gets the counter store for the current context (Inherited from PipelineContextBase) |
| Dependencies | (Inherited from GraphExecutionContext<TInstance>) |
| EnvironmentVersion |
Gets or sets the version of the environment (Inherited from PipelineContextBase) |
| ExecutionOptions |
Gets the execution options used for the pipeline. (Inherited from PipelineExecutionContext) |
| ExpressionOptions |
Gets the expression evaluation options for this context. (Inherited from PipelineContextBase) |
| IdGenerator |
Gets the ID generator for this context. (Inherited from PipelineExecutionContext) |
| Node |
Gets the target node for this execution context. (Inherited from GraphExecutionContext<TInstance>) |
| Phase |
The current phase which is being executed. |
| PreviousAttempt |
Gets the previous attempt of the phase if this is a retry of a job which has already executed. |
| ReferencedResources |
Gets the resources referenced within this context. (Inherited from PipelineContextBase) |
| ResourceStore |
Gets the resource store for the current context (Inherited from PipelineContextBase) |
| SecretMasker |
Gets the secret masker for the current context (Inherited from PipelineContextBase) |
| SecretsAccessed |
Gets a value indicating whether or not secret variables have been accessed. (Inherited from GraphExecutionContext<TInstance>) |
| Stage |
The current stage which is being executed. |
| State |
Gets the current state of the pipeline. (Inherited from PipelineExecutionContext) |
| StepProviders |
Gets the step providers for the current context (Inherited from PipelineContextBase) |
| SystemVariableNames |
Gets the system variable names for the current context (Inherited from PipelineContextBase) |
| TaskStore |
Gets the task store for the current context (Inherited from PipelineContextBase) |
| Trace |
Gets the trace for the current context (Inherited from PipelineContextBase) |
| Variables |
Gets the variables configured on the context (Inherited from PipelineContextBase) |
Methods
| Name | Description |
|---|---|
| CreateJobContext(String, Int32) | |
| CreateSecretMasker() | (Inherited from GraphExecutionContext<TInstance>) |
| Evaluate(JObject) |
Expand all variables and macros present as values (not keys) in a given JObject. Conditionally record unresolved expressions or macros as errors. (Inherited from PipelineContextBase) |
| Evaluate<T>(String) |
Evalutes the provided expression using the current context. (Inherited from PipelineContextBase) |
| ExpandVariables(JToken) |
Expand macros of the format $(variableName) using the current context. (Inherited from PipelineContextBase) |
| ExpandVariables(String, Boolean) |
Expand macros of the format $(variableName) using the current context. (Inherited from PipelineContextBase) |
| GetSupportedFunctions() | (Inherited from PipelineContextBase) |
| GetSupportedNamedValues() | (Inherited from GraphExecutionContext<TInstance>) |
| ResetSecretsAccessed() | (Inherited from GraphExecutionContext<TInstance>) |