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