public class MinioAllPathUploader extends Object implements hudson.FilePath.FileCallable<Void>
Builder
.
When the user calls the act method, the invoke method is called which in turn uploads the files using minioCLinet.
Constructor and Description |
---|
MinioAllPathUploader(io.minio.MinioClient minioClient,
String bucketName,
hudson.FilePath path,
String fileName,
hudson.model.TaskListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker) |
Void |
invoke(File f,
hudson.remoting.VirtualChannel channel)
This method uses minioClient to upload the Object.
|
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
SecurityException
public Void invoke(File f, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
invoke
in interface hudson.FilePath.FileCallable<Void>
IOException
InterruptedException
Copyright © 2016–2017. All rights reserved.