Interface ArtifactLinkManager

All Known Implementing Classes:
DefaultArtifactLinkManager

public interface ArtifactLinkManager
A manager for ArtifactLink.
  • Method Details

    • addArtifactLinks

      @NotNull @NotNull Collection<ArtifactLink> addArtifactLinks(@NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactPublishingResult result)
      Create ArtifactLink object and add it to the BuildResultsSummary.
      Parameters:
      producerResult - ResultsSummary object representing build that produced the artifact
      result - the artifact publishing result
      Returns:
      ArtifactLink objects which has been added to BuildResultsSummary
    • removeArtifactLink

      void removeArtifactLink(@NotNull @NotNull ArtifactLink artifactLink) throws IOException
      Remove an artifact link.
      Parameters:
      artifactLink -
      Throws:
      IOException
    • removeArtifactLink

      void removeArtifactLink(long artifactLinkId) throws IOException
      Remove an artifact link.
      Parameters:
      artifactLinkId -
      Throws:
      IOException
    • removeArtifactLinks

      void removeArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary)
      Remove all artifact links from the BuildResultsSummary.
      Parameters:
      buildResultsSummary -
    • removeProducedArtifactLinks

      void removeProducedArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary) throws IOException
      Remove all artifacts produced by a job in a build.
      Parameters:
      buildResultsSummary -
      Throws:
      IOException
    • removeArtifactLinks

      void removeArtifactLinks(@NotNull @NotNull ChainResultsSummary chainResultsSummary) throws IOException
      Remove all artifact links from the ChainResultsSummary.
      Parameters:
      chainResultsSummary -
      Throws:
      IOException
    • getArtifactLinks

      @NotNull @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType)
      Gets all the ArtifactLinks for the given ResultsSummary and optionally Artifact.getLinkType()
      Parameters:
      resultsSummary -
      linkType -
      Returns:
      artifactLinks
    • getArtifactLinkDataProvider

      @Nullable @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull Artifact artifact)
    • findArtifactsByChainResultKey

      @NotNull @NotNull Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
      Gets all the Artifacts for the given PlanResultKey
      Parameters:
      chainResultKey -
      Since:
      5.10
    • findArtifactLinksByChainResultKey

      @NotNull @NotNull Collection<ArtifactLink> findArtifactLinksByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)