git推动AWS代码管道脚本不起作用

发布于 2025-02-08 13:43:09 字数 1145 浏览 3 评论 0 原文

我们正在尝试使用以下脚本更新Git标签版本。

但是,Git推动是使用CodeStar连接到BitBucket的失败。

BuldsPec文件

phases:
  install:
    runtime-versions:
        java: corretto11
    commands:
      - echo "https://$GIT_USER:[email protected]" > ~/.git-credentials
      - git config --global --replace-all credential.helper 'store'
  pre_build:
    commands:
      - mvn -q -s settings.xml test
      - git config --global user.email "[email protected]"
      - bash git_tagging.sh
  build:
    commands:
      - echo Build started on `date`
      - echo Building the jar file
      ....

正在低于错误

fatal: could not read Username for 'https://codestar-connections.eu-east-1.amazonaws.com': No such device or address

We are trying to update the Git tag versions using below script.

https://github.com/bellwethercoffee-sw/tagpipeline/blob/main/git_tagging.sh

But git push is failing as its using codestar connection to bitbucket.

buldspec file

phases:
  install:
    runtime-versions:
        java: corretto11
    commands:
      - echo "https://$GIT_USER:[email protected]" > ~/.git-credentials
      - git config --global --replace-all credential.helper 'store'
  pre_build:
    commands:
      - mvn -q -s settings.xml test
      - git config --global user.email "[email protected]"
      - bash git_tagging.sh
  build:
    commands:
      - echo Build started on `date`
      - echo Building the jar file
      ....

Am getting below error

fatal: could not read Username for 'https://codestar-connections.eu-east-1.amazonaws.com': No such device or address

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文