Teamcity git 推送错误 - 使用 Maven 发布执行时无法读取用户名

Teamcity git push error - could not read username while using maven release perform

我是 Teamcity 的新手,我已经为 teamcity (8.1.5) 上的一个 Maven 项目配置了发布版本,并将 vcs root 设置为 GIT.

对于 VCS root,我配置了 git 存储库 url 并在结帐期间使用密码身份验证。它成功地检查了 Git 回购,但它无法在其上执行 mvn release:prepare 并抛出错误

The git-push command failed.
fatal: could not read Username for 'https://github.com': No such device or address

我知道这个错误意味着没有在 teamcity 上配置适当的凭据助手,但为什么 teamcity 默认不选择在 auth 部分配置的 username/pwd。

甚至我尝试使用 mvn 参数传递凭据并且 pom 具有以下 scm 设置

<scm>
    <connection>scm:git:https://github.com/abc/sp.git</connection>
    <developerConnection>scm:git:https://github.com/abc/sp.git</developerConnection>
    <url>scm:git:https://github.com/abc/sp.git</url> </scm>

我应该如何让它为 git push 工作?我在 TC 文档中找不到这个。

除了上述所有设置外,我还必须更新我的 pom 以添加最新版本的 maven 发布插件并且它工作正常

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.5.3</version>                
</plugin>