首页 > 解决方案 > git push 到远程分支 bitbucket 管道

问题描述

我正在为修补程序分支运行构建 bitbucket 管道。成功执行步骤后,我希望下一步将分支推送到develop分支。我正在尝试使用以下命令:

      - step:
          script:
            - git push "https://$bitbucket_username:$bitbucket_password@bitbucket.org/clinically/eregbinder-backend/branch/develop"

这会产生以下错误:

fatal: unable to access 'https://<username>:<password>@bitbucket.org/clinically/eregbinder-backend/branch/feature/dev2/ERB-899-implement-feature-vs-release/': Port number ended with 'S'

不确定以“S”开头的密码是否与错误消息有关。

如何从 bitbucket 构建容器中将我的分支推送到我的 repo 中的远程分支?

标签: gitbitbucket-pipelines

解决方案


推荐阅读