2017-01-06 1 views
2

Visual Studio Team Services를 기반으로 TeamCity 빌드를 구성하려고하는데 다음 오류가 발생합니다.TeamCity + VSTS - 에이전트 대상 파일에 대한 체크 아웃을 수행하지 못했습니다.

나는 파일이 체크 아웃 디렉토리에 다운로드 된 것을 볼 수있다 (C : 작업 \의 e3b96b8eb42644db \ \ 인 TeamCity \ 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 

나는이 자바 TFS SDK 관련이있다 생각합니다. 설치 VS이 가장 우아한 솔루션이 아니라 빌드 서버 전용입니다. 다른 아이디어가 있으면 공유하십시오.

0

이는 대개 프로젝트에서 파일을 수정 한 경우 발생합니다. 따라서 TFS는 변경된 파일을 자동으로 덮어 쓸 수 없습니다. 대기중인 변경 사항을 확인하거나 폴더를 정리하십시오.

관련 문제