2016-04-25 24 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

那麼,它之前工作完美,我不知道哪個帳戶用於它:/ –

相關問題