Is there a variable to use for the folder created on TFS source checkout; to be used for ESB deploys?
Answered
We want to use Team City for Enterprise Service Bus deploys. The normal process, is we grab the source files from TFS and run a script that builds and deploys the app. The issue is that the script we use, has a static TFS workspace path. From my understanding, TC creates a new folder with a random hash name, in the buildAgent/work directory. As such I cannot use this script, that easily. Is there a variable that TeamCity dynamically creates that can be of use for this? The first few lines of the bat script is setting the TFS path:
SET "TFSPATH=C:\Releases\ESB"
But I can easily pass a variable to it:
SET "_WrkPath=%1" Passed from TC
SET "TFSPATH=D:\Program Files\TeamCity\buildAgent\work\%_WrkPath%"
Is there such a variable or is there some other way I can achieve the same?
Please sign in to leave a comment.
Hi Jonathan,
You can use the %system.teamcity.build.workingDir% variable to get the full path to the working directory of the specific build configuration.