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
ConstructorsConstructorDescriptionS3BaseUploadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String, String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy, boolean usePathStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected Uploads.MetadatabuildMetadata(FilePath filePath) voidcheckRoles(org.jenkinsci.remoting.RoleChecker roleChecker) getDest()protected software.amazon.awssdk.transfer.s3.S3TransferManagerabstract StringStream 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, boolean usePathStyle)
-
-
Method Details
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException Upload from slave directly- Throws:
IOExceptionInterruptedException
-
invoke
Stream from slave to master, then upload from master- Throws:
IOExceptionInterruptedException
-
buildMetadata
protected Uploads.Metadata buildMetadata(FilePath filePath) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getDest
-
getTransferManager
protected software.amazon.awssdk.transfer.s3.S3TransferManager getTransferManager() -
checkRoles
- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-