Interface Artifact

All Superinterfaces:
BambooIdProvider
All Known Subinterfaces:
ArtifactData, MutableArtifact
All Known Implementing Classes:
ArtifactDataImpl, ArtifactImpl, MutableArtifactImpl, RestArtifact

@PublicApi public interface Artifact extends BambooIdProvider
Represents an artifact produced by a Bamboo build. see ArtifactLink
Since:
5.0
  • Field Details

  • Method Details

    • getLabel

      @NotNull @NotNull String getLabel()
      Label of the Artifact
      Returns:
      label
    • getSize

      long getSize()
      Returns a file size in bytes.
      Returns:
    • getLinkType

      @NotNull @NotNull String getLinkType()
      Type of artifact link
      Returns:
      linkType
    • isSharedArtifact

      boolean isSharedArtifact()
      Indicates if the artifact is a shared artifact.
      Returns:
      true if artifact is a shared artifact.
    • isGloballyStored

      boolean isGloballyStored()
      Indicates that the artifact is stored globally (i.e. not in plan specific catalogue)
    • getPlanResultKey

      @NotNull @NotNull PlanResultKey getPlanResultKey()
      Get key of ResultsSummary that owns this Artifact. Can be both Job or Plan result. May point to result which is already removed.
      Returns:
    • getArchiverType

      @NotNull @NotNull ArchiverType getArchiverType()
      Returns the type of archiver used for packaging files of this artifact. If artifact files were not packaged, ArchiverType.NONE should be returned.