Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15677

S3 plugin should retry few times if upload to S3 fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s3-plugin
    • Ubuntu 11.10, Linux 3.0.0-24-virtual #40-Ubuntu SMP Tue Jul 24 16:16:08 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux (Ec2)

      Upload broke with this error:

      Publish artifacts to S3 Bucket Using S3 profile: jenkins
      Publish artifacts to S3 Bucket bucket=deploy.***.com, file=www-site.tar.gz
      ERROR: Failed to upload files
      java.io.IOException: put Destination [bucketName=deploy.***.com, objectName=www-site.tar.gz]: com.amazonaws.AmazonClientException: Unable to execute HTTP request: Input stream cannot be reset as 5365760 bytes have been written, exceeding the available buffer size of 131072
      at hudson.plugins.s3.S3Profile.upload(S3Profile.java:82)
      at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:119)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:807)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:782)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:729)
      at hudson.model.Run.execute(Run.java:1541)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)
      Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE

      Artifact size hasn't changed so I don't think could be client related. Here a related discussion on AWS forum: https://forums.aws.amazon.com/thread.jspa?threadID=66753
      It would be nice to be able to tweak the retry number, or at least have a fixed value for that and not fail at the first try.

            mikewatt Michael Watt
            shaftoe Alexander Fortin
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: