BuildMaster SDK Reference
Version:

CreateBuildArtifact(Inedo.BuildMaster.Extensibility.Actions.IAgentBasedActionExecutionContext context, string artifactName, Inedo.BuildMaster.Extensibility.Actions.ActionLogMessageDelegator logger, System.Action throwIfCanceledOrTimeoutExpired) Method

Creates a build artifact and stores it in the artifact library.

Syntax

public static void CreateBuildArtifact(Inedo.BuildMaster.Extensibility.Actions.IAgentBasedActionExecutionContext context, string artifactName, Inedo.BuildMaster.Extensibility.Actions.ActionLogMessageDelegator logger, System.Action throwIfCanceledOrTimeoutExpired)

Parameters

context
Type: Inedo.BuildMaster.Extensibility.Actions.IAgentBasedActionExecutionContext

The context.

artifactName
Type: string

Name of the artifact.

logger
Type: Inedo.BuildMaster.Extensibility.Actions.ActionLogMessageDelegator

The logger.

throwIfCanceledOrTimeoutExpired
Type: System.Action

The throw if canceled or timeout expired.

Exceptions

System.ArgumentNullException

context is null (Nothing in Visual Basic) or logger is null (Nothing in Visual Basic) or artifactName is null (Nothing in Visual Basic)/whitespace or throwIfCanceledOrTimeoutExpired is null (Nothing in Visual Basic).

System.ArgumentException

artifactName contains invalid path characters.