Class S3Profile

java.lang.Object
hudson.plugins.s3.S3Profile

public class S3Profile extends Object
  • Constructor Details

    • S3Profile

      @DataBoundConstructor public S3Profile(String name, String accessKey, String secretKey, boolean useRole, int signedUrlExpirySeconds, String maxUploadRetries, String uploadRetryTime, String maxDownloadRetries, String downloadRetryTime, boolean keepStructure)
  • Method Details

    • setUsePathStyle

      @DataBoundSetter public void setUsePathStyle(boolean usePathStyle)
    • setDeleteArtifactsRecursively

      @DataBoundSetter public void setDeleteArtifactsRecursively(boolean deleteArtifactsRecursively)
    • isKeepStructure

      public boolean isKeepStructure()
    • getMaxDownloadRetries

      public int getMaxDownloadRetries()
    • getDownloadRetryTime

      public int getDownloadRetryTime()
    • getAccessKey

      public final String getAccessKey()
    • getSecretKey

      public final Secret getSecretKey()
    • getMaxUploadRetries

      public final int getMaxUploadRetries()
    • getUploadRetryTime

      public final int getUploadRetryTime()
    • getName

      public String getName()
    • getUseRole

      public final boolean getUseRole()
    • isUseRole

      public boolean isUseRole()
    • getSignedUrlExpirySeconds

      public int getSignedUrlExpirySeconds()
    • isUsePathStyle

      public boolean isUsePathStyle()
    • isDeleteArtifactsRecursively

      public boolean isDeleteArtifactsRecursively()
    • getClient

      public software.amazon.awssdk.services.s3.S3Client getClient(String region)
    • upload

      public List<FingerprintRecord> upload(Run<?,?> run, String bucketName, List<FilePath> filePaths, List<String> fileNames, Map<String,String> userMetadata, String storageClass, String selregion, boolean uploadFromSlave, boolean managedArtifacts, boolean useServerSideEncryption, boolean gzipFiles) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • list

      public List<String> list(Run build, String bucket)
    • downloadAll

      public List<FingerprintRecord> downloadAll(Run<?,?> build, List<FingerprintRecord> artifacts, String includeFilter, String excludeFilter, FilePath targetDir, boolean flatten) throws IOException, InterruptedException
      Download all artifacts from a given build
      Throws:
      IOException
      InterruptedException
    • delete

      public void delete(Run run, FingerprintRecord record)
      Delete some artifacts of a given run
    • toString

      public String toString()
      Overrides:
      toString in class Object