public interface ArtifactLinkManager
ArtifactLink
.Modifier and Type | Method and Description |
---|---|
ArtifactLink |
addArtifactLink(BuildResultsSummary producerResult,
ArtifactDefinitionContext artifactDefinitionContext,
String publisherPluginKey)
|
Collection<ArtifactLink> |
addArtifactLinks(BuildResultsSummary producerResult,
ArtifactPublishingResult result)
Create ArtifactLink object and add it to the BuildResultsSummary.
|
com.google.common.collect.Multimap<String,Artifact> |
findArtifactsByChainResultKey(PlanResultKey chainResultKey)
Gets all the
Artifact s for the given PlanResultKey |
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(Artifact artifact) |
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(ArtifactLink artifactLink)
Deprecated.
since 5.6 use the
getArtifactLinkDataProvider(com.atlassian.bamboo.artifact.Artifact) |
Collection<ArtifactLink> |
getArtifactLinks(ResultsSummary resultsSummary,
String linkType)
|
Collection<ArtifactLink> |
getArtifactLinksForLinkType(ResultsSummary resultsSummary,
String linkType)
Deprecated.
|
void |
removeArtifactLink(ArtifactLink artifactLink)
Remove an artifact link.
|
void |
removeArtifactLink(long artifactLinkId)
Remove an artifact link.
|
void |
removeArtifactLinks(BuildResultsSummary buildResultsSummary)
Remove all artifact links from the BuildResultsSummary.
|
void |
removeArtifactLinks(ChainResultsSummary chainResultsSummary)
Remove all artifact links from the ChainResultsSummary.
|
void |
removeProducedArtifactLinks(BuildResultsSummary buildResultsSummary)
Remove all artifacts produced by a job in a build.
|
@NotNull @Deprecated ArtifactLink addArtifactLink(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull String publisherPluginKey)
addArtifactLinks(com.atlassian.bamboo.resultsummary.BuildResultsSummary, com.atlassian.bamboo.plan.artifact.ArtifactPublishingResult)
producerResult
- ResultsSummary object representing build that produced the artifactartifactDefinitionContext
- artifact definition contextpublisherPluginKey
- the plugin key of the artifact handler used to publish the artifact@NotNull Collection<ArtifactLink> addArtifactLinks(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactPublishingResult result)
producerResult
- ResultsSummary object representing build that produced the artifactresult
- the artifact publishing resultvoid removeArtifactLink(@NotNull ArtifactLink artifactLink) throws IOException
artifactLink
- IOException
void removeArtifactLink(long artifactLinkId) throws IOException
artifactLinkId
- IOException
void removeArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary)
buildResultsSummary
- void removeProducedArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary) throws IOException
buildResultsSummary
- IOException
void removeArtifactLinks(@NotNull ChainResultsSummary chainResultsSummary) throws IOException
chainResultsSummary
- IOException
@NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull ResultsSummary resultsSummary, @Nullable String linkType)
resultsSummary
- linkType
- @Deprecated @NotNull Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull ResultsSummary resultsSummary, @NotNull String linkType)
getArtifactLinks(com.atlassian.bamboo.resultsummary.ResultsSummary, String)
resultsSummary
- linkType
- @Deprecated @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull ArtifactLink artifactLink)
getArtifactLinkDataProvider(com.atlassian.bamboo.artifact.Artifact)
artifactLink
- @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull Artifact artifact)
@NotNull com.google.common.collect.Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull PlanResultKey chainResultKey)
Artifact
s for the given PlanResultKey
chainResultKey
- Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.