Class DownloadItem
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<DownloadItemProperties>
-
- com.atlassian.bamboo.specs.builders.task.DownloadItem
-
public class DownloadItem extends EntityPropertiesBuilder<DownloadItemProperties>
Represents a single download request.
-
-
Constructor Summary
Constructors Constructor Description DownloadItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadItemallArtifacts(boolean allArtifacts)Requests downloading all the artifacts provided by the source plan.DownloadItemartifact(@NotNull java.lang.String name)Requests downloading a specific artifact.protected DownloadItemPropertiesbuild()DownloadItempath(@NotNull java.lang.String path)Specifies the path artifact should be downloaded to.
-
-
-
Method Detail
-
allArtifacts
public DownloadItem allArtifacts(boolean allArtifacts)
Requests downloading all the artifacts provided by the source plan. If specific artifact was selected, the selection is removed.
-
artifact
public DownloadItem artifact(@NotNull @NotNull java.lang.String name)
Requests downloading a specific artifact. Sets "allArtifacts" to false.
-
path
public DownloadItem path(@NotNull @NotNull java.lang.String path)
Specifies the path artifact should be downloaded to. The path can be both absolute and relative to the build working directory. Empty by default.
-
build
protected DownloadItemProperties build()
- Specified by:
buildin classEntityPropertiesBuilder<DownloadItemProperties>
-
-