public abstract class S3BaseUploadCallable extends Object
| Constructor and Description |
|---|
S3BaseUploadCallable(String accessKey,
Secret secretKey,
boolean useRole,
Destination dest,
Map<String,String> userMetadata,
String storageClass,
String selregion,
boolean useServerSideEncryption,
ProxyConfiguration proxy) |
| Modifier and Type | Method and Description |
|---|---|
protected com.amazonaws.services.s3.model.ObjectMetadata |
buildMetadata(FilePath filePath) |
void |
checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker) |
Destination |
getDest() |
protected com.amazonaws.services.s3.transfer.TransferManager |
getTransferManager() |
abstract String |
invoke(FilePath file)
Stream from slave to master, then upload from master
|
String |
invoke(File file,
hudson.remoting.VirtualChannel channel)
Upload from slave directly
|
public S3BaseUploadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String,String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy)
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract String invoke(FilePath file) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected com.amazonaws.services.s3.model.ObjectMetadata buildMetadata(FilePath filePath) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Destination getDest()
protected com.amazonaws.services.s3.transfer.TransferManager getTransferManager()
public void checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker)
throws SecurityException
checkRoles in interface org.jenkinsci.remoting.RoleSensitiveSecurityExceptionCopyright © 2016–2021. All rights reserved.