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

AWS regions must match com.amazonaws.regions.Regions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Jenkins 1.641, job-dsl-plugin ed2d121c

      Saw the following traceback when trying to use the s3 publisher:

      <pre>
      s3("tmp") {
      entry('...', '...', 'us-east-1') {
      }
      }
      </pre>

      <pre>
      java.lang.IllegalArgumentException: No enum constant com.amazonaws.regions.Regions.us-east-1
      at hudson.plugins.s3.S3Profile.upload(S3Profile.java:140)
      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:782)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      at hudson.model.Run.execute(Run.java:1763)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      </pre>

      Changing above to US_EAST_1 to match com.amazonaws.regions.Regions fails because that doesn't match the REGIONS list in S3BucketPublisherContext.groovy.

            jmpesp James MacMahon
            jmpesp James MacMahon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: