IOperationExecutionContext Interface

Provides the context for an execution.

Inheritance Hierarchy

Syntax

public interface IOperationExecutionContext : Inedo.Extensibility.Credentials.ICredentialResolutionContext, Inedo.Extensibility.SecureResources.IResourceResolutionContext

Properties

Name Description
Agent

Gets the current agent.

CancellationToken

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

ExecutionId

Gets the current execution ID.

ExecutionStatus

Gets the current execution status.

Log

Gets the execution log.

ServerName

Gets the name of the current server used for operations.

Simulation

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

WorkingDirectory

Gets the default working directory used for operations.

Methods

Name Description
ApplyTextTemplateAsync(string text, System.Collections.Generic.IReadOnlyDictionary<string, Inedo.ExecutionEngine.RuntimeValue> additionalVariables)
CreateBuildMasterArtifactAsync(string artifactName, System.IO.Stream source, bool overwrite, System.Threading.CancellationToken cancellationToken)
CreateNestedOtterScript(string script)
ExpandVariablesAsync(string text, System.Collections.Generic.IReadOnlyDictionary<string, Inedo.ExecutionEngine.RuntimeValue> additionalVariables)
ExpandVariablesInPersistentPropertiesAsync(object instance, System.Collections.Generic.IReadOnlyDictionary<string, Inedo.ExecutionEngine.RuntimeValue> additionalVariables)
GetAgent(string serverName)
GetAgentAsync(string serverName)
GetRuntimeVariables

Returns a dictionary containing all runtime variables that are accessible from the current scope.

ResolvePath(string path)
SetVariableValue(Inedo.ExecutionEngine.RuntimeVariableName variableName, Inedo.ExecutionEngine.RuntimeValue variableValue)
TryGetFunctionValue(string functionName, Inedo.ExecutionEngine.RuntimeValue[] args)
TryGetServiceAsync<TService>
TryGetVariableValue(Inedo.ExecutionEngine.RuntimeVariableName variableName)