Bamboo + Stash:请告诉我你是谁

时间:2013-11-19 12:55:41

标签: git maven maven-release-plugin bamboo bitbucket-server

我正在尝试使用Bamboo运行maven-job并使用maven release-plugin发布一个项目。但是,当Bamboo尝试提交某些内容时,会出现以下错误:

19-Nov-2013 13:20:37    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project Projectname: Unable to commit files
19-Nov-2013 13:20:37    [ERROR] Provider message:
19-Nov-2013 13:20:37    [ERROR] The git-commit command failed.
19-Nov-2013 13:20:37    [ERROR] Command output:
19-Nov-2013 13:20:37    [ERROR]
19-Nov-2013 13:20:37    [ERROR] *** Please tell me who you are.
19-Nov-2013 13:20:37    [ERROR]
19-Nov-2013 13:20:37    [ERROR] Run
19-Nov-2013 13:20:37    [ERROR]
19-Nov-2013 13:20:37    [ERROR] git config --global user.email "you@example.com"
19-Nov-2013 13:20:37    [ERROR] git config --global user.name "Your Name"
19-Nov-2013 13:20:37    [ERROR]
19-Nov-2013 13:20:37    [ERROR] to set your account's default identity.
19-Nov-2013 13:20:37    [ERROR] Omit --global to set the identity only in this repository.

我搜索了Bamboo设置和Google以找到设置这些身份信息的方法,但我找不到任何有用的东西。有谁知道,如何设置?

1 个答案:

答案 0 :(得分:6)

它出现在错误消息中:运行两个“git config”命令。您必须以执行构建的用户身份运行这些命令,因此您可能需要在开始之前执行类似“sudo su bamboo”的操作。

这两个值最终会出现在Bamboo用户主目录的.gitconfig文件中:

[user]
name = Bamboo Server
email = bamboo@yourcompany.com

您也可以在文本编辑器中编辑此文件。

相关问题