2017-01-06 11 views
2

Visual Studio Team Servicesに基づいてTeamCityビルドを設定しようとしていますが、次のエラーが発生しています。TeamCity + VSTS - エージェントターゲットファイルでチェックアウトを実行できませんでした

私は、ファイルがチェックアウトディレクトリにダウンロードされていることがわかります(C:仕事の\ e3b96b8eb42644db \ \チームシティー\ buildAgent)ので、私はこれが起こっている理由を把握することができます。

[18:04:51]Starting the build on the agent MYAGENT 
[18:04:54]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp 
[18:04:54]Publishing internal artifacts 
[18:04:54][Publishing internal artifacts] Publishing 1 file using [WebPublisher] 
[18:04:54][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher] 
[18:04:54]Using vcs information from agent file: e3b96b8eb42644db.xml 
[18:04:54]Checkout directory: C:\TeamCity\buildAgent\work\e3b96b8eb42644db 
[18:04:54]Updating sources: auto checkout (on agent) (32s) 
[18:04:54][Updating sources] Will use agent side checkout 
[18:04:54][Updating sources] VCS Root: tfs: https://myproject.visualstudio.com/ $/myproject Project (32s) 
[18:04:54][VCS Root: tfs: https://myproject.visualstudio.com/ $/myproject Project] revision: 26497 
[18:04:55][VCS Root: tfs: https://myproject.visualstudio.com/ $/myproject Project] Using java working mode 
[18:04:55][VCS Root: tfs: https://myproject.visualstudio.com/ $/myproject Project] Receiving workspace (10s) 
[18:05:05][Receiving workspace] Using workspace TeamCity-checkout-9755e46c9dbd4e2386cd6ff8f61f9c3f;2805f05d-0506-40bf-ace2-1cc59462cfac/MYAGENT 
[18:05:05][VCS Root: tfs: https://myproject.visualstudio.com/ $/myproject Project] Updating sources to revision: 26497 
[18:05:27][Updating sources] Failed to perform checkout on agent: Failed to checkout repository version 26497: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: java.lang.IllegalArgumentException: renaming: target file already exists 

任意のヒント?

+0

エージェントリポジトリ内の変更されたファイルのようです。コンパイル中に生成されたファイルと同じです。きれいなチェックアウトを試みるか、エージェントに行き、保留中の変更があるかどうかを確認してください。 –

答えて

1

Visual Studioをインストールした後、問題は解決しませんでした。

ため、私は、私がログで見つかった以下の情報を、それをインストールしている:

C:\TeamCity\buildAgent\plugins\tfs-agent\bin\tfs-native.exe @@C:\TeamCity\buildAgent\temp\globalTmp\TC-TFS-595-4405_66\command.params, in file: {/CheckApi} has failed with exit code 1: No TFS assemblies were found on the system. Please make sure you have Microsoft Team Explorer installed. Supported versions: 2017 2015 2013 2012 2010 2008 2005 
[2017-01-09 17:53:25,670] INFO - cs.tfs.TfsAgentServiceProvider - Use Java TFS SDK 
[2017-01-09 17:53:25,671] INFO - s.tfs.TfsUpdateByCheckoutRules - Clean checkout flag was set by the build agent 
[2017-01-09 17:53:31,714] INFO - .tfs.java.TfsJavaConsoleRunner - TFS java console command has finished: ListWorkspaces -s="https://myproject.visualstudio.com/" -u="*******" -p="*******" -inputFile=C:\TeamCity\buildAgent\temp\globalTmp\TC-TFS-595-4405_67.tmp -outputFile=C:\TeamCity\buildAgent\temp\globalTmp\TC-TFS-595-4405_68.tmp, completed in 5.998 second(s) 
[2017-01-09 17:53:31,717] INFO - s.vcs.tfs.TfsWorkspaceProvider - Using workspace TeamCity-checkout-9ee0800418e64e77b38b598f7d5b15a5;2805f05d-0506-40bf-ace2-1cc59462cfac/MYAGENT 
[2017-01-09 17:55:21,600] INFO - ldServer.AGENT.PollingProtocol - New command is received from server "agentFileManager 

私はそれはJava SDK TFSに関連していると信じています。 インストールVSは、特にビルドサーバー用の最も洗練されたソリューションではないことは知っています。あなたが他のアイデアを持っているなら、それを共有してください。

0

これは通常、プロジェクト内のファイルを変更した場合に発生します。したがって、TFSは変更されたファイルを自動的に上書きすることはできません。保留中の変更をチェックインするか、フォルダをクリーンアップしてみてください。

関連する問題