2016-04-25 45 views
0

自从我与它,团队城市显示在构建和所有我的下一个推动的这个错误不会被发送到服务器的提交和强制推送修改的消息。更改不会发送。TeamCity的构建“进程退出,代码128”

我不知道该如何处理这个错误,没有找到互联网上的东西,而事实上,我的新推不计只是让我困扰。

这里的日志:

[15:55:51]Skip checking for changes - changes are already collected 
[15:55:52]Building incremental patch for VCS root: Osaxis Git parametered root; checkout rules: =>; revision: bced9add36f7c34c8622b6f47bafbfdc45a69a48 --> 1efd8f421044b9f0d58784d982fd6d2c0f12609c 
[15:55:51]Publishing internal artifacts 
[15:55:51][Publishing internal artifacts] Sending using WebPublisher 
[15:55:51][Publishing internal artifacts] Sending using ArtifactsCachePublisher 
[15:55:51]Clearing temporary directory: /srv/TeamCity/buildAgent/temp/buildTmp 
[15:55:51]Checkout directory: /srv/TeamCity/buildAgent/work/b4756bb7138c55d8 
[15:55:51]Updating sources: server side checkout 
[15:55:51][Updating sources] Using vcs information from agent file: b4756bb7138c55d8.xml 
[15:55:52][Updating sources] Repository sources transferred 
[15:55:52]Step 1/2: VCS update (parametered) (Command Line) 
[15:55:52][Step 1/2] Starting: /bin/sh /scripts/intranet/10-vcs_update.sh 
[15:55:52][Step 1/2] in directory: /srv/TeamCity/buildAgent/work/b4756bb7138c55d8 
[15:55:52][Step 1/2] From http://git.osaxis.fr:8888/r/IntranetSF2 
[15:55:52][Step 1/2] + bced9ad...1efd8f4 developpement -> origin/developpement (forced update) 
[15:55:52][Step 1/2] 
[15:55:52][Step 1/2] *** Please tell me who you are. 
[15:55:52][Step 1/2] 
[15:55:52][Step 1/2] Run 
[15:55:52][Step 1/2] 
[15:55:52][Step 1/2] git config --global user.email "[email protected]" 
[15:55:52][Step 1/2] git config --global user.name "Your Name" 
[15:55:52][Step 1/2] 
[15:55:52][Step 1/2] to set your account's default identity. 
[15:55:52][Step 1/2] Omit --global to set the identity only in this repository. 
[15:55:52][Step 1/2] 
[15:55:52][Step 1/2] fatal: unable to auto-detect email address (got '[email protected](none)') 
[15:55:52][Step 1/2] Process exited with code 128 
[15:55:52][Step 1/2] Step VCS update (parametered) (Command Line) failed 
[15:55:52]Step 2/2: Docker upgrade (parametered) (Command Line) 
[15:55:52][Step 2/2] Build step Docker upgrade (parametered) (Command Line) is skipped because the previous step has failed 
[15:55:52]Publishing internal artifacts 
[15:55:52][Publishing internal artifacts] Sending using WebPublisher 
[15:55:52][Publishing internal artifacts] Sending using ArtifactsCachePublisher 
[15:55:53]Build finished 

似乎是git的配置问题,但我并没有改变。

如果有人知道如何处理这将是真棒问题。

回答

0

这有最有可能无关TeamCity的,但你的更新脚本。

你的脚本/scripts/intranet/10-vcs_update.sh与退出代码128示数出来,这样的TeamCity构建失败。

转到您的服务器,执行你的更新脚本,看看它究竟失败。您还可以将set -x添加到脚本中,然后输出当前执行的内容。

+0

我不想做的失误让我只是看着在文件中,并且只有:设置-eu CD的/ var /泊坞窗/内联网git拉。也是只读,也许这就是问题 –

+0

是的,那里你有你的问题。如果你没有改变配置,你可以做一个'pull',这是一个'fetch',然后是'merge'。所以你尝试创建一个合并提交,但你的'user.email'和'user.name'没有设置,因此命令错误,甚至在错误出现之前告诉你prosa。 – Vampire

+0

Sooo ...某些“重新启动git”并删除之前设置的用户信息?我需要做什么来解决它?而且不会损害任何东西 –

0

您需要在TeamCity的服务器上配置您的git的默认设置,所以基本上你需要SSH服务器,并设置你的电子邮件和名称,如:

混帐配置--global user.email“you_email @例子。 COM”

混帐配置--global user.name‘你的名字’

+0

那么,它之前工作完美,我不知道哪个帐户用于它:/ –

相关问题