BuildMaster SDK Reference
Version:

AgentBasedActionBase Class

The base class for actions which execute on an agent.

Inheritance Hierarchy

Syntax

public class AgentBasedActionBase : ActionBase, Inedo.Diagnostics.ILogger

Constructors

Name Description
AgentBasedActionBase

Initializes a new instance of the AgentBasedActionBase class.

Properties

Name Description
AddBuildMasterVariablesAsEnvironmentVariables

Gets a value indicating whether the new process environment should contain all of the variables in the current execution context.

Context

Gets the action context.

LogProcessStandardErrorAsError

Gets a value indicating whether the executed process's Standard Error should be logged with a Inedo.Diagnostics.MessageLevel of Inedo.Diagnostics.MessageLevel.Error or Inedo.Diagnostics.MessageLevel.Information.

OverriddenSourceDirectory

Gets or sets the Source Directory override.

OverriddenTargetDirectory

Gets or sets the Target Directory override.

OverriddenWorkingDirectory

Gets or sets the Working Directory override.

Methods

Name Description
ExecuteCommandLine(Inedo.Agents.RemoteProcessStartInfo startInfo)

Executes a process on the associated agent, blocking until the process terminates, the action is canceled, or the action timeout is reached.

ExecuteCommandLine(string fileName)

Executes a process on the associated agent, blocking until the process terminates, the action is canceled, or the action timeout is reached.

ExecuteCommandLine(string fileName, string arguments)

Executes a process on the associated agent, blocking until the process terminates, the action is canceled, or the action timeout is reached.

ExecuteCommandLine(string fileName, string arguments, string workingDirectory)

Executes a process on the associated agent, blocking until the process terminates, the action is canceled, or the action timeout is reached.

LogProcessErrorData(string data)

Invoked when data is written to the process's Standard Error output.

LogProcessOutputData(string data)

Invoked when data is written to the process's Standard Out output.