Language

PipelineContextBase Class

Definition

Provides base functionality for all contexts used during build and execution if a pipeline.

public abstract class PipelineContextBase : Microsoft.TeamFoundation.DistributedTask.Pipelines.IPipelineContext
type PipelineContextBase = class
    interface IPipelineContext
Public MustInherit Class PipelineContextBase
Implements IPipelineContext
Inheritance
PipelineContextBase
Derived
Implements

Properties

Name Description
CounterStore

Gets the counter store for the current context

EnvironmentVersion

Gets or sets the version of the environment

ExpressionOptions

Gets the expression evaluation options for this context.

ReferencedResources

Gets the resources referenced within this context.

ResourceStore

Gets the resource store for the current context

SecretMasker

Gets the secret masker for the current context

SecretsAccessed

Gets a value indicating if secret variables have been accessed

StepProviders

Gets the step providers for the current context

SystemVariableNames

Gets the system variable names for the current context

TaskStore

Gets the task store for the current context

Trace

Gets the trace for the current context

Variables

Gets the variables configured on the context

Methods

Name Description
CreateSecretMasker()
Evaluate(JObject)

Expand all variables and macros present as values (not keys) in a given JObject. Conditionally record unresolved expressions or macros as errors.

Evaluate<T>(String)

Evalutes the provided expression using the current context.

ExpandVariables(JToken)

Expand macros of the format $(variableName) using the current context.

ExpandVariables(String, Boolean)

Expand macros of the format $(variableName) using the current context.

GetSupportedFunctions()
GetSupportedNamedValues()
ResetSecretsAccessed()

Applies to