Class FileSystemArtifactLinkDataProvider
java.lang.Object
com.atlassian.bamboo.build.artifact.FileSystemArtifactLinkDataProvider
- All Implemented Interfaces:
ArtifactLinkDataProvider
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemArtifactLinkDataProvider(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact) FileSystemArtifactLinkDataProvider(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact, boolean lookForIndexFiles) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()booleangetFile()@NotNull StringlonggetSize()@NotNull Iterable<ArtifactFileData>listObjects(@Nullable String subpath) This method should not be normally called.
-
Constructor Details
-
FileSystemArtifactLinkDataProvider
public FileSystemArtifactLinkDataProvider(@NotNull @NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull @NotNull Artifact artifact) throws FileNotFoundException - Throws:
FileNotFoundException
-
FileSystemArtifactLinkDataProvider
public FileSystemArtifactLinkDataProvider(@NotNull @NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull @NotNull Artifact artifact, boolean lookForIndexFiles) throws FileNotFoundException - Throws:
FileNotFoundException
-
-
Method Details
-
getRootUrl
- Specified by:
getRootUrlin interfaceArtifactLinkDataProvider
-
listObjects
This method should not be normally called. Implementation is provided for the following scenario:- user is generating artifacts using S3 Artifact Handler
- user stores URL to the artifact
- user is changing Artifact Storage configuration to use Atlassian Cloud storage
- user is rerunning a build creating artifact available on Bamboo server
- then he uses URL to go to the artifact
- Specified by:
listObjectsin interfaceArtifactLinkDataProvider
-
getSize
public long getSize()- Specified by:
getSizein interfaceArtifactLinkDataProvider
-
lastModified
- Specified by:
lastModifiedin interfaceArtifactLinkDataProvider
-
exists
public boolean exists()- Specified by:
existsin interfaceArtifactLinkDataProvider
-
exists
- Specified by:
existsin interfaceArtifactLinkDataProvider
-
getFile
-