TeamCity构建“进程退出代码128”

时间:2016-04-25 10:21:11

标签: git build teamcity teamcity-9.0

由于我通过提交更改了消息并强制推送它,因此团队城市在构建中显示此错误,并且我的所有下一次推送都不会发送到服务器。不会发送更改。

我不知道如何处理这个错误,没有在互联网上找到任何东西,而且我的新推送不计算的事实正是困扰我的。

这是日志:

[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 "you@example.com"
[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 'root@aef183e198de.(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配置的问题,但我没有改变它。

如果有人知道如何处理那个很棒的问题。

2 个答案:

答案 0 :(得分:0)

这很可能与TeamCity无关,而是与您的更新脚本无关。

您的脚本/scripts/intranet/10-vcs_update.sh错误输出,退出代码为128,因此TeamCity构建失败。

转到您的服务器,执行更新脚本并查看其完全失败的位置。您还可以将set -x添加到脚本中,然后输出当前正在执行的内容。

答案 1 :(得分:0)

您需要在TeamCity服务器上配置git默认设置,因此基本上您需要ssh到服务器并设置电子邮件和名称,如:

git config --global user.email" you_email@example.com"

git config --global user.name"您的姓名"