Package hudson.plugins.s3.callable
Class S3BaseUploadCallable
java.lang.Object
hudson.plugins.s3.callable.S3BaseUploadCallable
- All Implemented Interfaces:
FilePath.FileCallable<String>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
S3GzipCallable
,S3UploadCallable
- See Also:
-
Constructor Summary
ConstructorDescriptionS3BaseUploadCallable
(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String, String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.s3.model.ObjectMetadata
buildMetadata
(FilePath filePath) void
checkRoles
(org.jenkinsci.remoting.RoleChecker roleChecker) getDest()
protected com.amazonaws.services.s3.transfer.TransferManager
abstract String
Stream from slave to master, then upload from masterUpload from slave directly
-
Constructor Details
-
S3BaseUploadCallable
public S3BaseUploadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String, String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy)
-
-
Method Details
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException Upload from slave directly- Throws:
IOException
InterruptedException
-
invoke
Stream from slave to master, then upload from master- Throws:
IOException
InterruptedException
-
buildMetadata
protected com.amazonaws.services.s3.model.ObjectMetadata buildMetadata(FilePath filePath) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getDest
-
getTransferManager
protected com.amazonaws.services.s3.transfer.TransferManager getTransferManager() -
checkRoles
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-