public interface ArtifactRepository
Modifier and Type | Method and Description |
---|---|
File |
downloadArtifacts()
Returns a local directory containing *all* artifacts within the run's artifact directory.
|
File |
downloadArtifacts(String artifactPath)
Returns a local file or directory containing all artifacts within the given artifactPath
within the run's root artifactDirectory.
|
List<Service.FileInfo> |
listArtifacts()
Lists the artifacts immediately under the run's root artifact directory.
|
List<Service.FileInfo> |
listArtifacts(String artifactPath)
Lists the artifacts immediately under the given artifactPath within the run's root artifact
irectory.
|
void |
logArtifact(File localFile)
Uploads the given local file to the run's root artifact directory.
|
void |
logArtifact(File localFile,
String artifactPath)
Uploads the given local file to an artifactPath within the run's root directory.
|
void |
logArtifacts(File localDir)
Uploads all files within the given local director the run's root artifact directory.
|
void |
logArtifacts(File localDir,
String artifactPath)
Uploads all files within the given local director an artifactPath within the run's root
artifact directory.
|
void logArtifact(File localFile)
localFile
- File to upload. Must exist, and must be a simple file (not a directory).void logArtifact(File localFile, String artifactPath)
localFile
- File to upload. Must exist, and must be a simple file (not a directory).artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.void logArtifacts(File localDir)
localDir
- Directory to upload. Must exist, and must be a directory (not a simple file).void logArtifacts(File localDir, String artifactPath)
localDir
- Directory to upload. Must exist, and must be a directory (not a simple file).artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.List<Service.FileInfo> listArtifacts()
List<Service.FileInfo> listArtifacts(String artifactPath)
artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.File downloadArtifacts()
File downloadArtifacts(String artifactPath)
artifactPath
- Artifact path relative to the run's root directory. Should NOT
start with a /.Copyright © 2018. All rights reserved.