BuildMaster SDK Reference
Version:

ArtifactBuilder Class

Allows creation of a BuildMaster artifact.

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
Add(Inedo.BuildMaster.Files.FileEntryInfo fileEntry, Inedo.Agents.IFileOperationsExecuter fileOps)

Adds a file to the artifact.

Add(Inedo.BuildMaster.Files.DirectoryEntryInfo directoryEntry)

Adds an empty directory to the artifact.

Add(Inedo.BuildMaster.Files.SystemEntryInfo entry, Inedo.Agents.IFileOperationsExecuter fileOps)

Adds a file or directory to the artifact.

Commit

Saves the artifact and records it in the database.

Dispose

Releases resources used by the instance.

ImportZip(ArtifactIdentifier artifact, Inedo.Agents.IFileOperationsExecuter fileOps, Inedo.BuildMaster.Files.FileEntryInfo fileEntry, int? executionId)

Imports a zip file into the BuildMaster artifact library.

ImportZip(ArtifactIdentifier artifact, Inedo.Agents.IFileOperationsExecuter fileOps, Inedo.BuildMaster.Files.FileEntryInfo fileEntry)

Imports a zip file into the BuildMaster artifact library.

ImportZip(ArtifactIdentifier artifact, System.IO.Stream stream)

Imports the zip file into the BuildMaster artifact library from a stream.