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

Plugin Doesn't Work with Private S3 Maven Repository

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • maven-metadata-plugin
    • None
    • Jenkins ver. 2.172
      Maven Metadata Plugin ver. 2.0.0

      I've created a private S3 Maven repository using this solution https://www.yegor256.com/2015/09/07/maven-repository-amazon-s3.html

       

      When I use the Maven Metadata Plugin I get the following error when I run build with parameters:

       

      <java.io.IOException: Server returned HTTP response code: 403 for URL https://s3.eu-west-2.amazonaws.com/maven-repo/release/com/tool/provisioning/maven-metadata.xml>

       

      both the Jenkins master and agent have access to the s3 bucket with the correct IAM permissions via IAM Role and policies. In fact, I can list the maven metadata fine on both the master and agent using aws cli aws s3 ls. The only way I can get round this is to make the maven-metadata.xml public in the s3 repository which is really not ideal..

            marcrohlfs Marc Rohlfs
            synalogik Ebrahim Moshaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: