BuildMaster SDK Reference
Version:

Artifact Class

Represents a BuildMaster artifact.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Artifacts.Artifact

Syntax

public class Artifact : IEquatable<Artifact>

Properties

Name Description
ApplicationId

Gets the application ID.

ApplicationName

Gets the application name.

BuildId

Gets the build ID.

BuildNumber

Gets the build number.

Created

Gets the UTC time when the artifact was created.

DeployableId

Gets the deployable ID associated with the artifact, if any.

DeployableName

Gets the name of the deployable associated with the artifact, if any.

FileExists

Gets a value indicating whether the artifact file actually exists at the location specified by FullPath.

FullPath

Gets the absolute path of the artifact file on the BuildMaster server.

Name

Gets the artifact name.

RelativePath

Gets the relative path on disk of the artifact file on the BuildMaster server.

ReleaseId

Gets the release ID.

ReleaseNumber

Gets the release number.

Methods

Name Description
CreateArtifact(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite)

Creates or overwrites an artifact.

CreateArtifact(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite, bool useLegacyPath)

Creates or overwrites an artifact.

CreateArtifactAsync(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite)

Creates or overwrites an artifact.

CreateArtifactAsync(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite, bool useLegacyPath)

Creates or overwrites an artifact.

Delete

Deletes the artifact from disk and the database.

DeleteAsync

Deletes the artifact from disk and the database.

Equals(Artifact a1, Artifact a2)

Returns a value indicating whether the specified artifacts are equivalent.

Equals(Artifact other)

Returns a value indicating whether this artifact is equivalent to another artifact.

Equals(object obj)

Returns a value indicating whether this artifact is equivalent to another artifact.

GetArtifact(int applicationId, string releaseNumber, string buildNumber, string artifactName)

Returns the specified artifact if it exists; otherwise returns null (Nothing in Visual Basic).

GetArtifactAsync(int applicationId, string releaseNumber, string buildNumber, string artifactName)

Returns the specified artifact if it exists; otherwise returns null (Nothing in Visual Basic).

GetArtifacts(int applicationId, string releaseNumber)

Returns all of the artifacts in the specified release of the specified application.

GetArtifacts(int applicationId, string releaseNumber, string buildNumber)

Returns all of the artifacts in the specified build of the specified application.

GetArtifacts(int applicationId, string releaseNumber, string buildNumber, int? deployableId)

Returns all of the artifacts in the specified build of the specified application that are associated with the specified deployable.

GetHashCode

Returns a hash code for the artifact.

Open

Opens the artifact file.

OpenAsync

Opens the artifact file.

ToString

Returns the artifact name.