BuildMaster SDK Reference
Version:

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

Deploys the configuration file to the specified agent.

Syntax

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

Parameters

context
Type: Inedo.BuildMaster.Extensibility.IGenericBuildMasterContext

The context used for deployment.

agent
Type: Inedo.BuildMaster.Extensibility.Agents.BuildMasterAgent

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.BuildMaster.Extensibility.Agents.BuildMasterAgent agent).