tfsbuild - TFS 2015 Build vNext recursive variable substitution -


is possible variable substitution not recursive?

example1:

variable value

sqlinstance (localdb)\mssqllocaldb

dbcatalogname foodb

connstr data source=$(sqlinstance);initial catalog=$(dbcatalogname)$(build.buildid);

during build connection string substituted to: data source=(localdb)\mssqllocaldb;initial catalog=foodb3211;

this configuration works perfectly. if move buildid parameter dbcatalogname variable won't substituted.

example2:

variable value

sqlinstance (localdb)\mssqllocaldb

dbcatalogname foodb$(build.buildid)

connstr data source=$(sqlinstance);initial catalog=$(dbcatalogname);

with configuration connection string substituted to: data source=(localdb)\mssqllocaldb;initial catalog=foodb$(build.buildid);

so how can chain variables vnext?

if want "dbcatalogname" variable contain buildid value, recommend add additional power-shell build step set value of "dbcatalogname".

the code set variable value:

##vso[task.setvariable variable=testvar;]testvalue 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -