ArtifactClient

external interface ArtifactClient(source)

Inheritors

Functions

Link copied to clipboard
abstract fun deleteArtifact(artifactName: String, options: FindOptions = definedExternally): Promise<DeleteArtifactResponse>

Delete an Artifact

Link copied to clipboard
abstract fun downloadArtifact(artifactId: Number, options: DownloadArtifactOptions = definedExternally): Promise<DownloadArtifactResponse>

Downloads an artifact and unzips the content.

Link copied to clipboard
abstract fun getArtifact(artifactName: String, options: FindOptions = definedExternally): Promise<GetArtifactResponse>

Finds an artifact by name. If there are multiple artifacts with the same name in the same workflow run, this will return the latest. If the artifact is not found, it will throw.

Link copied to clipboard
abstract fun listArtifacts(options: ListArtifactsOptions = definedExternally): Promise<ListArtifactsResponse>

Lists all artifacts that are part of the current workflow run. This function will return at most 1000 artifacts per workflow run.

Link copied to clipboard
abstract fun uploadArtifact(name: String, files: ReadonlyArray<String>, rootDirectory: String, options: UploadArtifactOptions = definedExternally): Promise<UploadArtifactResponse>

Uploads an artifact.