VS2013,TFS 2013 构建失败

VS2013,TFS 2013 构建失败

我正在尝试使用 TFS 构建来运行批处理文件“tt.bat”,这是一个非常示例的批处理文件,它仅创建一个文件夹。mkdir d:\ttt 批处理文件工作正常,但是当我使用 VS 2013 构建它时出现错误,以下是日志:

编译、测试和发布00:00:06

Run optional script before MSBuild00:00:00
Run MSBuild00:00:01
C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\nuget.exe restore "C:\Builds\1\Test2\CIB2\src\Solution1.sln" -NonInteractive
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\MSBuild.exe /nologo /noconsolelogger "C:\Builds\1\Test2\CIB2\src\Solution1.sln" /nr:False /fl /flp:"logfile=C:\Builds\1\Test2\CIB2\src\Solution1.log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /m /p:OutDir="C:\Builds\1\Test2\CIB2\bin\\" /p:VCBuildOverride="C:\Builds\1\Test2\CIB2\src\Solution1.sln.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/36;InformationNodeId=12;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;TFSUrl=http://localhost:8080/tfs/DefaultCollection;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;" /p:BuildId="6da97dfb-9620-440e-9dcc-c177a2e0ab90,vstfs:///Build/Build/36" /p:BuildLabel="CIB2_20151104.2" /p:BuildTimestamp="Wed, 04 Nov 2015 08:47:52 GMT" /p:BuildSourceVersion="LCIB2_20151104.2@$/Test2" /p:BuildDefinition="CIB2"


Run optional script after MSBuild00:00:05
C:\Builds\1\Test2\CIB2\src\tt.bat
C:\Builds\1\Test2\CIB2\src>mkdir d:\ttt
The device is not ready.
 Exception Message: TF270015: 'tt.bat' returned an unexpected exit code. Expected '0'; actual '1'. See the build logs for more details. (type UnexpectedExitCodeException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

这是我的构建定义: 构建定义

相关内容