BuildMaster SDK Reference
Version:

ArtifactBuilder Class

Facilitates creating a BuildMaster artifact from files in a disk path.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Artifacts.ArtifactBuilder

Syntax

public class ArtifactBuilder : System.IDisposable

Properties

Name Description
Artifact

Gets the artifact being created.

RootPath

Gets or sets the root path for adding entries to the artifact.

Methods

Name Description
AddDirectory(string path)

Adds a directory to the artifact.

AddFile(string path, System.DateTime lastWriteTimeUtc, System.IO.Stream stream)

Adds a file to the artifact.

AddFile(string path, System.DateTime lastWriteTimeUtc, Inedo.Agents.IFileOperationsExecuter fileOps)

Adds a file to the artifact.

AddFileAsync(string path, System.DateTime lastWriteTimeUtc, System.IO.Stream stream)

Adds a file to the artifact.

AddFileAsync(string path, System.DateTime lastWriteTimeUtc, Inedo.Agents.IFileOperationsExecuter fileOps)

Adds a file to the artifact.

Commit

Saves the artifact and records it in the database.

Dispose

Releases resources used by the instance.