Class ArtifactDownloaderTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>
com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask
public class ArtifactDownloaderTask
extends Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>
Represents task that downloads artifacts created by other jobs and plans.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifacts
(@NotNull DownloadItem... artifacts) Adds download requests.protected @NotNull ArtifactDownloaderTaskProperties
build()
customBranch
(@NotNull String customBranch) Specifies the plan branch name of the source plan from which the artifact should be taken.boolean
int
hashCode()
Disables indicating branch source by customBranch, Artifact Downloader will work by default, tries to match by branch name otherwise it'll take an artifact from master.sourcePlan
(@NotNull PlanIdentifier planIdentifier) Specifies the plan that is the source of the artifacts.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
ArtifactDownloaderTask
public ArtifactDownloaderTask()
-
-
Method Details
-
sourcePlan
Specifies the plan that is the source of the artifacts. If this property is not set, source plan is either the current plan (if the task is used in a job) or the plan associated with the deployment project (if the task is used in a deployment environment). -
customBranch
Specifies the plan branch name of the source plan from which the artifact should be taken. If this property is not set, then default mode is enabled: match branches by name otherwise take master. If this property is set, then custom mode is enabled: takes from selected branch plan.- Since:
- 10.2
-
matchByBranchName
Disables indicating branch source by customBranch, Artifact Downloader will work by default, tries to match by branch name otherwise it'll take an artifact from master.- Since:
- 10.2
-
artifacts
Adds download requests. -
build
- Specified by:
build
in classTask<ArtifactDownloaderTask,
ArtifactDownloaderTaskProperties>
-
equals
- Overrides:
equals
in classTask<ArtifactDownloaderTask,
ArtifactDownloaderTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<ArtifactDownloaderTask,
ArtifactDownloaderTaskProperties>
-