• Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • aws-codebuild-plugin
    • None
    • Latest Jenkins version: 2.46.2, latest codedeploy-plugin, open-jdk 1.7.0_111

      Following the steps for:  Using AWS CodeBulid with source only available inside of your VPC

      Manual build from AWS console, it works successful, source code checkout from git is ok, but when starting build phase with codebuild, I got following error. IAM permission checked with full access.

      // code placeholder
      java.lang.RuntimeException: Unable to extract S3 bucket from object ARN.
      at Utils.getS3BucketFromObjectArn(Utils.java:24)
      at CodeBuilder.perform(CodeBuilder.java:132)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1728)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Run build on AWS CodeBuild' marked build as failure
      Finished: FAILURE

       

          [JENKINS-44035] Failed to build with this plugin

          James Zhang created issue -
          James Zhang made changes -
          Description Original: Following the steps for:  Using AWS CodeBulid with source only available inside of your VPC

          Manual build from AWS console, it works successful, source code checkout from git is ok, but when starting build phase with codebuild, I got following error. IAM permission checked with full access.
          {code:java}
          // code placeholder
          {code}
          java.lang.RuntimeException: Unable to extract S3 bucket from object ARN.
          at Utils.getS3BucketFromObjectArn(Utils.java:24)
          at CodeBuilder.perform(CodeBuilder.java:132)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:206)
          at hudson.model.Build$BuildExecution.doRun(Build.java:163)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1728)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:405)
          Build step 'Run build on AWS CodeBuild' marked build as failure
          Finished: FAILURE
          New: Following the steps for:  Using AWS CodeBulid with source only available inside of your VPC

          Manual build from AWS console, it works successful, source code checkout from git is ok, but when starting build phase with codebuild, I got following error. IAM permission checked with full access.
          {code:java}
          // code placeholder
          java.lang.RuntimeException: Unable to extract S3 bucket from object ARN.
          at Utils.getS3BucketFromObjectArn(Utils.java:24)
          at CodeBuilder.perform(CodeBuilder.java:132)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          at hudson.model.Build$BuildExecution.build(Build.java:206)
          at hudson.model.Build$BuildExecution.doRun(Build.java:163)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1728)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:405)
          Build step 'Run build on AWS CodeBuild' marked build as failure
          Finished: FAILURE{code}
           

          Subin Mathew added a comment -

          Fixed with Fix S3 ARN parsing

          Subin Mathew added a comment - Fixed with  Fix S3 ARN parsing . 
          Subin Mathew made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            subinataws Subin Mathew
            jameszh James Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: