Interface ArtifactFileManager

All Known Implementing Classes:
DefaultArtifactFileManager

public interface ArtifactFileManager
A wrapper around the
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    retrieveArtifact(String artifactPath)
    Retrieves the given artifact from the Jenkins Master-Node
    void
    storeArtifact(TemporaryFile artifact, String targetArtifactPath)
    Stores the given artifact from the temporary file on the Jenkins Master-Node
  • Method Details

    • retrieveArtifact

      TemporaryFile retrieveArtifact(String artifactPath) throws IOException, ArtifactNotFoundException
      Retrieves the given artifact from the Jenkins Master-Node
      Parameters:
      artifactPath - the artifact path in the "Jenkins-Format" i.e. abc/def/new.exe
      Returns:
      the temporary file containing the artifact content
      Throws:
      IOException - occurs if something went wrong with creating the temporary fiel
      ArtifactNotFoundException - occurs if there was no artifact found at the given path
    • storeArtifact

      void storeArtifact(TemporaryFile artifact, String targetArtifactPath) throws IOException, InterruptedException, NoSuchAlgorithmException
      Stores the given artifact from the temporary file on the Jenkins Master-Node
      Parameters:
      artifact - the artifact to store on Jenkins
      targetArtifactPath - the target path of the artifact
      Throws:
      IOException - occurs if something goes wrong with storing the artifact on Jenkins
      InterruptedException - occurs if something goes wrong with storing the artifact on Jenkins
      NoSuchAlgorithmException - occurs if something goes wrong with storing the artifact on Jenkins