BuildMaster SDK Reference
Version:

Deploy(Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext context, Inedo.Extensibility.Agents.Agent agent) Method

Deploys the configuration file to the specified agent.

Syntax

public bool Deploy(Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext context, Inedo.Extensibility.Agents.Agent agent)

Parameters

context
Type: Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext

The context used for deployment.

agent
Type: Inedo.Extensibility.Agents.Agent

The agent to deploy the configuration file to.

Returns

True if configuration file deployment succeeded or was not necessary; false if there was an error.

Exceptions

System.ArgumentNullException

context is null (Nothing in Visual Basic) or agent is null (Nothing in Visual Basic).

Remarks

For details about the deployment, including any errors, subscribe to the MessageLogged event before calling Deploy(Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext context, Inedo.Extensibility.Agents.Agent agent).