Package com.atlassian.bamboo.artifact
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. seeArtifactLink- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYSTEM_LINK_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ArchiverTypegetArchiverType()Returns the type of archiver used for packaging files of this artifact.@NotNull StringgetLabel()Label of the Artifact@NotNull StringgetLinkType()Type of artifact link@NotNull PlanResultKeygetPlanResultKey()Get key ofResultsSummarythat owns thisArtifact.longgetSize()Returns a file size in bytes.booleanisGloballyStored()Indicates that the artifact is stored globally (i.e.booleanisSharedArtifact()Indicates if the artifact is a shared artifact.-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
-
-
-
Field Detail
-
SYSTEM_LINK_TYPE
static final String SYSTEM_LINK_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 ofResultsSummarythat owns thisArtifact. 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.NONEshould be returned.
-
-