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

S3 Plugin doesn't work with latest Java8 (8u60)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s3-plugin
    • Jenkins 1.628 with S3 Plugin 0.7 with Oracle Java 8u60 installed on Ubuntu 14.04

      ERROR: Failed to upload files
      java.io.IOException: put Destination [bucketName=build, objectName=package-803.tar.gz]: com.amazonaws.services.s3.model.AmazonS3Exception: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: D99D949393A2563E), S3 Extended Request ID: hYQQbXJACOUu+iWyoHYwRycCvR2e0oRgjG2syW3l/rjjXjzxiae9gvHtzVGO6N11
      	at hudson.plugins.s3.S3Profile.upload(S3Profile.java:152)
      	at hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:174)
      	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      	at hudson.model.Build$BuildExecution.post2(Build.java:185)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      	at hudson.model.Run.execute(Run.java:1766)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:408)
      Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE
      

      relates to:
      https://github.com/aws/aws-sdk-java/issues/484
      https://github.com/aws/aws-sdk-java/issues/444

      solution seems to be related to JodaTime package version dependency of the AWS SDK that was fixed with version 1.10.1 while plugin version 0.7 in Jenkins uses AWS SDK version 1.9.6.

            mikewatt Michael Watt
            romanblachman Roman Blachman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: