【发布时间】:2018-09-28 11:41:35
【问题描述】:
我正在使用 release-plugin 通过 Temcity 准备发布 我得到以下错误
[10:46:19][Step 2/3] [INFO] Executing: /bin/sh -c cd
/home/tcagent/buildAgent/work/860f91e0ad4abff2 && git push
https://username:****@testurl.com:8081/scm/myrepo/my-project-name.git/**buildConfName**
refs/heads/release/release-name:refs/heads/release/release-name
[10:46:19][Step 2/3] [INFO] Working directory:
/home/tcagent/buildAgent/work/860f91e0ad4abff2
[Step 2/3] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare
(default-cli) on project **my-project-name**: Unable to commit files
Provider message: The git-push command failed. Command output: fatal:
remote error: Repository not found The requested repository does not
exist, or you do not have permission to access it.
我的父 pom 有以下 SCM 详细信息
<scm>
<connection>scm:git:https://testurl.com:8081/scm/myrepo/${env.TEAMCITY_BUILDCONF_NAME}.git</connection>
<developerConnection>scm:git:https://testurl.com:8081/scm/myrepo/${env.TEAMCITY_BUILDCONF_NAME}.git</developerConnection>
<tag>1.0.0</tag>
</scm>
我的 bit-bucket 存储库名称、buildConfName 和工件 id 保持不变。当我构建父项目时,它运行成功,但是当我尝试构建子模块时,我看到 buildConfName 自动附加到父 POM 中配置的 SCM url
谁能告诉我为什么要添加额外的项目名称?
谢谢
【问题讨论】:
-
你有提交权限吗?你是如何设置你的 git VCS 的?
-
是的,正在使用的uesrname有提交权限。
标签: git maven teamcity maven-release-plugin