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

S3 Plugin switches credential profiles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: s3-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      We use the S3 plugin in both a newer Jenkins install (v1.471, waiting for some important stuff to clear before we update it to 1.474) and a few older Hudson builds. The current Jenkins w/S3 (v0.3) works for a while, then all our builds stop uploading to S3 with an "Access Denied" error from Amazon. The builds on the older Hudson/S3 still work to the same bucket, and our credentials still work when I test with s3fs on the same machine. Error from Jenkins build console of one failure (buckets and filenames changed to xxxxx):

      Archiving artifacts
      Publish artifacts to S3 Bucket Using S3 profile: builds2
      Publish artifacts to S3 Bucket bucket=xxxxxxx/store, file=xxxxxxx.latest.apk
      ERROR: Failed to upload files
      java.io.IOException: put Destination [bucketName=xxxxxxxxx, objectName=xxxxxxx/store/xxxxxxxxxxx.latest.apk]: Status Code: 403, AWS Request ID: 85F9CB0156BF7CF6, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: swP7ylP4SQNW3o9uP3alhBO/VZthqvuFxWiZ2Pn54mqhSHk2uEtSrIlhPXlJLPUM
      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:717)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      at hudson.model.Run.execute(Run.java:1509)
      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

        Attachments

          Activity

          Hide
          hoang Hoang Tran added a comment -

          I've got the same issue using the latest LTS 1.x jenkins and v0.10.1 S3-Plugin.

          My setup has only 2 profiles both using AccessKey/SecretKey.

          We have been restarting jenkins all the time for the use of each profile (once the profile used, it is the one that is OK, the other one will have "Access Denied").

          Show
          hoang Hoang Tran added a comment - I've got the same issue using the latest LTS 1.x jenkins and v0.10.1 S3-Plugin. My setup has only 2 profiles both using AccessKey/SecretKey. We have been restarting jenkins all the time for the use of each profile (once the profile used, it is the one that is OK, the other one will have "Access Denied").
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Akbashev Alexander
          Path:
          src/main/java/hudson/plugins/s3/callable/S3Callable.java
          http://jenkins-ci.org/commit/s3-plugin/4bcdbf30074176a46758e0b14d2c9816769dbd02
          Log:
          JENKINS-14470: S3 Plugin switches credential profiles (#88)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Akbashev Alexander Path: src/main/java/hudson/plugins/s3/callable/S3Callable.java http://jenkins-ci.org/commit/s3-plugin/4bcdbf30074176a46758e0b14d2c9816769dbd02 Log: JENKINS-14470 : S3 Plugin switches credential profiles (#88) JENKINS-14470 : S3 Plugin switches credential profiles
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alexander Akbashev
          Path:
          src/main/java/hudson/plugins/s3/callable/S3Callable.java
          http://jenkins-ci.org/commit/s3-plugin/8e9d9228bcfbbfaeb0bce23cdbe08240941fba4c
          Log:
          JENKINS-14470: S3 Plugin switches credential profiles

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Akbashev Path: src/main/java/hudson/plugins/s3/callable/S3Callable.java http://jenkins-ci.org/commit/s3-plugin/8e9d9228bcfbbfaeb0bce23cdbe08240941fba4c Log: JENKINS-14470 : S3 Plugin switches credential profiles
          Hide
          jimilian Alexander A added a comment -

          Hoang Tran, please, check new version (0.10.3), it should be fixed there.

          Show
          jimilian Alexander A added a comment - Hoang Tran , please, check new version (0.10.3), it should be fixed there.
          Hide
          hoang Hoang Tran added a comment - - edited

          Alexander A Upgraded, Tested (with latest 1.x stable Jenkins). It works like a charm. Perfect. Thank you ^^

          Show
          hoang Hoang Tran added a comment - - edited Alexander A Upgraded, Tested (with latest 1.x stable Jenkins). It works like a charm. Perfect. Thank you ^^

            People

            • Assignee:
              jimilian Alexander A
              Reporter:
              tmack0 Theral Mackey
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: