BuildMaster SDK Reference
Version:
CreateArtifactAsync(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite) Method
Creates or overwrites an artifact.
Syntax
public
static
System.Threading.Tasks.Task CreateArtifactAsync(int applicationId, string releaseNumber, string buildNumber, int? deployableId, int? executionId, string artifactName, System.IO.Stream artifactData, bool overwrite)
Parameters
- applicationId
- Type: int
The ID of the containing application.
- releaseNumber
- Type: string
The containing release number.
- buildNumber
- Type: string
The containing build number.
- deployableId
- Type: int?
The associated deployable ID, or null (Nothing in Visual Basic) for no deployable.
- executionId
- Type: int?
The associated execution ID, or null (Nothing in Visual Basic) for not applicable.
- artifactName
- Type: string
The name of the artifact. This must be unique to the build.
- artifactData
- Type: System.IO.Stream
Stream containing artifact data to copy to the library; this should be a zip file.
- overwrite
- Type: bool
Value indicating whether an existing artifact can be overwritten.
Exceptions
System.ArgumentNullException
|
releaseNumber, buildNumber, or artifactName are null (Nothing in Visual Basic) or empty, or artifactData is null (Nothing in Visual Basic).
|
System.ArgumentException
|
The specified build, release, or application does not exist.
|
System.InvalidOperationException
|
The artifact already exists and overwrite is false.
|