2017-02-27 34 views
0

我嘗試在我的tfs服務器中構建apk文件。當我運行生成,5分鐘後tfs服務器告訴我,我的apk文件是建立和狀態好,byt文件夾中沒有apk文件,只在我的日誌文件夾。無法確定工作區。您可以通過運行來更正此問題

Run build_APK.bat 
    F:\Android\projects\Mrdoc\TeamBuildTypes\mobile_v3R\\build_APK.bat "\\tfb\storage\mobile v3r_1.7\" 
    Get last version in TFS Server... 
    Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'. 
    Enviroment initializing... 
    The system cannot find the path specified. 
    Assembling... 
    Deploing path:"\\tfbd\storage\mobile v3r_1.7\" 
    The command "F:\Android\projects\Mrdoc\TeamBuildTypes\EOSmobile_v3R\\build_APK.bat "\\tfb\storage\mobile v3r_1.7\"" exited with code 1. 

我跑命令「TF工作區/集:TeamProjectCollectionUrl」 ,我看到了所有用戶,但它並沒有幫助我。

Overall Build Process 

Get the Build 

Update Build Number 

Run On Agent Default Agent - test1 

Get the Build Directory 

If Not String.IsNullOrEmpty(ConfigurationFolderPath) 

Run TfsBuild for Configuration Folder 

Getting sources 

Labeling sources 

Generating list of changesets and updating work items 

Выполнена сборка $/Doc/TeamBuildTypes/mobile_v3R/TFSBuild.proj для целевых объектов CompileConfiguration. 

MSBuild Log File 
If CompilationStatus = Unknown 

Set CompilationStatus to Succeeded 

If TestStatus = Unknown 

Set TestStatus to Succeeded 

​​

+0

[TFS錯誤:無法確定此解決方案的工作區]的可能的複製(http://stackoverflow.com/questions/2559294/tfs-error-unable - 確定工作空間爲此解決方案) – Chisko

+0

@Chisko 沒有幫助我,我看到了這個答案,更新了我的問題 –

+0

你在使用XAML構建你的案例和什麼是你的tfs版本? –

回答

0

首先,如果你的構建服務與網絡服務註冊。嘗試將其更改爲具有足夠構建權限的Windows用戶。

此外,請確保您有工作區映射爲您的生成計算機和運行生成代理程序的Windows帳戶。

看看這個類似的問題:Team Build, fixing the "Unable to determine the workspace" error

相關問題