visual studio - TFS Build workflow custom variable is empty after iniatilization -
i have created custom variable sourcespath in outter level of workflow. 
then initialized it. 
i see value assigned when view log.
00:00 initialize sources directory initial property values value = c:\builds\3\project demo\sources final property values = c:\builds\3\project demo\sources value = c:\builds\3\project demo\sources 00:00 initialize sourcespath later use initial property values value = c:\builds\3\project demo\sources final property values = c:\builds\3\project demo\sources value = c:\builds\3\project demo\sources later used in invokeprocess activity. 
but variable appeared empty @ runtime:
00:02 invokeprocesssonar initial property values arguments = -x environmentvariables = filename = c:\\scan.bat outputencoding = system.text.sbcscodepageencoding workingdirectory = \\src\\solution c:\\scan.bat final property values arguments = environmentvariables = filename = c:\\scan.bat outputencoding = system.text.sbcscodepageencoding result = 0 workingdirectory = \\src\\solution final property values agentsettings = use agent name=* , tags empty; max wait time: 04:00:00 associatechangesetsandworkitems = true buildnumberformat = $(builddefinitionname)_$(date:yyyymmdd)$(rev:.r) buildsettings = build $/projectdemo/src/solution/projectdemo.sln default platform , configuration cleanworkspace = createlabel = true disabletests = false dropbuild = false getversion = msbuildarguments = msbuildplatform = auto performtestimpactanalysis = true privatedroplocation = runcodeanalysis = asconfigured sourceandsymbolserversettings = index sources testspecs = run tests in assemblies matching **\*test*.dll verbosity = diagnostic directory name invalid do miss anything?
if want run @ end of workflow, suggest placing invoke process in finaly part of try compile, test , publish, last thing fire in agent scope, , variable should still in context
Comments
Post a Comment