BuildMaster SDK Reference
Version:

IOperationExecutionContext Interface

Provides the context for an execution.

Inheritance Hierarchy

  • Inedo.BuildMaster.Extensibility.Operations.IOperationExecutionContext

Syntax

public interface IOperationExecutionContext : IGenericBuildMasterContext

Properties

Name Description
Agent

Gets the current agent.

CancellationToken

Gets the current System.Threading.CancellationToken for the operation.

Deployable

Gets the current deployable.

ExecutionId

Gets the current execution ID.

Simulation

Gets a value indicating whether state-modifying actions should be simulated.

WorkingDirectory

Gets the default working directory used for operations.

Methods

Name Description
ExpandVariables(string text)

Expands variables in the specified string using the current execution context.

GetAgentAsync(string serverName)

Returns the agent with the specified server name and associates it with the current execution.

GetDeployable(string deployableName)

Returns information about the deployable with the specified name.

ResolvePath(string path)

Returns a fully-resolved absolute path of the specified file or directory.

SetVariableValue(string variableName, Inedo.ExecutionEngine.RuntimeValue variableValue)

Sets the value of the specified execution variable, or creates a new one in the current scope.

TryGetFunctionValue(string functionName, Inedo.ExecutionEngine.RuntimeValue[] args)

Returns the value of the specified function or null (Nothing in Visual Basic) if the function is not defined.

TryGetVariableValue(string variableName)

Returns the value of the specified variable or null (Nothing in Visual Basic) if the variable is not defined.