无法确定工作区。您可以通过运行来纠正此问题

时间:2017-02-27 14:58:12

标签: android tfs

我尝试在我的tfs服务器中构建apk文件。当我运行构建,5分钟后tfs服务器告诉我,我的apk文件是构建和状态确定,文件夹不是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 workspaces / collection: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

enter image description here

1 个答案:

答案 0 :(得分:0)

首先,如果您的构建服务是使用网络服务注册的。尝试将其更改为具有足够构建权限的Windows用户。

此外,请确保您的构建计算机以及运行构建代理程序的Windows帐户具有工作区映射

看看这个类似的问题:Team Build, fixing the "Unable to determine the workspace" error