batch file - "Directory Name Invalid" error from Customized TFS Build Definition -
i trying run (empty) batch file customized tfs build definition, every time process hits "run script" build activity, "directory name invalid" error.
we using tfs 2013 update 4 on windows server 2008 r2 standard, , running visual studio 2013 win 8.1 pro on dev machine.
the batch file in question @ "c:\builds\sp_base" on tfs server (as shown in test condition in customized build template. here's template (based on gittemplate.12.xaml, since using git our source control):
this definition our "run script" action:
from log file, can see test directory batch file passes without issue. same log file shows error:
does know how resolve this, please?
i've seen other threads discussing "directory name invalid" issue in other contexts, , closest match 1 referring fact cmd.exe gets invoked without sufficient privileges.
if looking @ symptom of similar issue here, what should invoke cmd.exe tfs build process without errors?
currently have if @ cmd.exe's properties:
in answer question how invoke cmd.exe tfs build process...
i found can use invokeprocess activity instead of runscript in customized build template. this article helped.
this new custom template xaml (including error handling invokeprocess):
also, having added variables exitcode (int32) , errormessage (string) per article, properties of invokeprocess activity follows:
please note leading "/c" term in arguments property invokeprocess. without it, activity run , return no error, script not executed.
hope helps similar issue.
Comments
Post a Comment