Interface ArtifactFileManager
- All Known Implementing Classes:
DefaultArtifactFileManager
public interface ArtifactFileManager
A wrapper around the
-
Method Summary
Modifier and TypeMethodDescriptionretrieveArtifact
(String artifactPath) Retrieves the given artifact from the Jenkins Master-Nodevoid
storeArtifact
(TemporaryFile artifact, String targetArtifactPath) Stores the given artifact from the temporary file on the Jenkins Master-Node
-
Method Details
-
retrieveArtifact
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 fielArtifactNotFoundException
- 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 JenkinstargetArtifactPath
- the target path of the artifact- Throws:
IOException
- occurs if something goes wrong with storing the artifact on JenkinsInterruptedException
- occurs if something goes wrong with storing the artifact on JenkinsNoSuchAlgorithmException
- occurs if something goes wrong with storing the artifact on Jenkins
-