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):

enter image description here

this definition our "run script" action: enter image description here

from log file, can see test directory batch file passes without issue. same log file shows error:

enter image description here

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:

enter image description here

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): enter image description here

also, having added variables exitcode (int32) , errormessage (string) per article, properties of invokeprocess activity follows:

enter image description here

please note leading "/c" term in arguments property invokeprocess. without it, activity run , return no error, script not executed.

hope helps similar issue.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -