-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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!