Class ArtifactDownloaderTask


public class ArtifactDownloaderTask extends Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>
Represents task that downloads artifacts created by other jobs and plans.
  • Constructor Details

    • ArtifactDownloaderTask

      public ArtifactDownloaderTask()
  • Method Details

    • sourcePlan

      public ArtifactDownloaderTask sourcePlan(@NotNull @NotNull PlanIdentifier planIdentifier)
      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

      public ArtifactDownloaderTask customBranch(@NotNull @NotNull String customBranch)
      Specifies the plan branch name of the source plan from which the artifact must be taken. If this property is set, then custom mode is enabled: use the plan branch specified. If this property is not set, then default mode is enabled: first try to find a plan branch in the source plan with the same name as the plan branch it belongs to. If not found, then uses the default (e.g. master) plan branch.
      Since:
      10.2
    • matchByBranchName

      public ArtifactDownloaderTask matchByBranchName()
      Activates the match-plan-branches-by-name mode by cleaning eventual "customBranch" setting. After activating this mode, Artifact Downloader task will first try to find a plan branch in the source plan with the same name as the plan branch it belongs to. If not found, then uses the default (e.g. master) plan branch.
      Since:
      10.2
    • artifacts

      public ArtifactDownloaderTask artifacts(@NotNull @NotNull DownloadItem... artifacts)
      Adds download requests.
    • build

      @NotNull protected @NotNull ArtifactDownloaderTaskProperties build()
      Specified by:
      build in class Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Task<ArtifactDownloaderTask,ArtifactDownloaderTaskProperties>