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

Support AWS Credentials type in GCP Credential provider

XMLWordPrintable

      Could GCP Secrets manager create a Jenkins "AWS Credential" ?

      Current use case and troubleshooting:

      Jenkins pipeline script uses the docker build and AWS ECR plugins+dependencies.

      This script will only work properly if the access key/secret key is stored in credential type "AWS Credentials" . I have tried Username/Password but it fails every time with "credential not found"

      I'm not sure what's so special about the difference between "username/password" type and "AWS Credentials" since that's all an Access Key really is.

      script {
                          docker.withRegistry(env.ECR_REPOSITORY_URL,'ecr:us-east-1:aws-ecr-cred') {
                          def testimage = docker.build("${ECR_IMAGE_REPO_NAME}")
                          testimage.push("${ECR_IMAGE_TAG}")
                  }
        

       

      Thanks for your time!

            mdaugherty6 Michael Daugherty
            cloudengineer Brandon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: