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

Retry S3 uploads a couple times before giving up?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s3-plugin
    • None

      We often see this in our builds, usually a rebuild fixes it.
      Could the S3 plugin retry a couple times if it receives an error?

      00:04:27.998 Publish artifacts to S3 Bucket Using S3 profile: xxxx
      00:04:28.070 Publish artifacts to S3 Bucket bucket=xxxxx/yyyyy_master-471_2014-06-05_17-45-08, file=yyyyy_dist-Linux-x86_64.tgz region = US_EAST_1
      00:05:40.909 ERROR: Failed to upload files
      00:05:40.910 java.io.IOException: put Destination [bucketName=xxxx, objectName=yyyy_master-471_2014-06-05_17-45-08/yyyy_dist-Linux-x86_64.tgz]: com.amazonaws.AmazonClientException: Encountered an exception and couldn't reset the stream to retry
      00:05:40.910 	at hudson.plugins.s3.S3Profile.upload(S3Profile.java:90)
      00:05:40.910 	at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:144)
      00:05:40.910 	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      00:05:40.910 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      00:05:40.910 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      00:05:40.910 	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      00:05:40.910 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725)
      00:05:40.910 	at hudson.model.Run.execute(Run.java:1701)
      00:05:40.910 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      00:05:40.910 	at hudson.model.ResourceController.execute(ResourceController.java:88)
      00:05:40.910 	at hudson.model.Executor.run(Executor.java:231)
      00:05:40.910 Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE
      

            mattias Mattias Appelgren
            joshk0 Joshua K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: