当我推送图像时,Jenkins 找不到与 aws 凭证匹配的凭证

问题描述 投票:0回答:1

我使用 jenkins 管道构建图像并将其推送到我的 aws 注册表。我创建了一个相关的凭证,其类型是名为“aws_credential”的AWS凭证。但我收到错误消息

ERROR: Could not find credentials matching aws_credential
。我的管道是

        script.docker.withRegistry(registryUrl, registryCredentialsId) {
            def image = script.docker.image(imageName)
            image.push()
        }

registryCredentialsId
是“aws_credential”,
registryUrl
是我的 aws 注册网址。

它读取了我的凭据并成功登录。

amazon-web-services jenkins credentials cicd
1个回答
0
投票

好吧,我犯了一个错误,我什至没有安装 Amazon ECR 插件。

© www.soinside.com 2019 - 2024. All rights reserved.