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 String
SYSTEM_LINK_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ArchiverType
getArchiverType()
Returns the type of archiver used for packaging files of this artifact.@NotNull String
getLabel()
Label of the Artifact@NotNull String
getLinkType()
Type of artifact link@NotNull PlanResultKey
getPlanResultKey()
Get key ofResultsSummary
that owns thisArtifact
.long
getSize()
Returns a file size in bytes.boolean
isGloballyStored()
Indicates that the artifact is stored globally (i.e.boolean
isSharedArtifact()
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 ofResultsSummary
that 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.NONE
should be returned.
-
-