Language

Phase Class

Definition

[System.Runtime.Serialization.DataContract]
public sealed class Phase : Microsoft.TeamFoundation.DistributedTask.Pipelines.IGraphNode
type Phase = class
    interface IGraphNode
Public NotInheritable Class Phase
Implements IGraphNode
Inheritance
Phase
Attributes
Implements

Constructors

Name Description
Phase()

Properties

Name Description
Condition

Gets or sets a condition which is evaluated after all dependencies have been satisfied and determines whether or not the jobs within this phase should be executed or skipped.

ContinueOnError

Gets or sets a value indicating whether or not failed jobs are considered a termination condition for the phase.

Dependencies

Gets the list of dependencies, if any, which control the graph of execution.

DependsOn

Gets the set of phases which must complete before this phase begins execution.

DisplayName

Gets or sets the display name for this phase.

Name

Gets or sets the name for this phase.

Steps

Gets the list of steps associated with this phase. At runtime the steps will be used as a template for the execution of a job.

Target

Gets or sets the target for this phase.

Variables

Gets the set of variables which will be provided to the phase steps.

Methods

Name Description
CreateJob(PipelineExecutionContext, String)

Creates the specified job using the provided execution context and name.

CreateJobContext(PhaseExecutionContext, String, Int32)

Creates the specified job using the provided execution context and name. A new execution context is returned which includes new variables set by the job.

Expand(PhaseExecutionContext, JobExpansionOptions)

Expands the template using the provided execution context and returns the list of jobs.

Expand(PipelineExecutionContext)

Expands the template using the provided execution context and returns the list of jobs.

Explicit Interface Implementations

Name Description
IGraphNode.Validate(PipelineBuildContext, ValidationResult)

Resolves external references and ensures the steps are compatible with the selected target.

Applies to