How do I get the reference directory of projects in TeamCity?

I am using TeamCity as a build server and have a little trouble setting up projects and their dependencies.

Ultimately I want the project dependency checkout directory to customize certain build steps. To do this, I have a variable %teamcity.build.checkoutDir%

for the design directory of the project itself.

However, I didn't find something like %dep.<dependencyID>.teamcity.build.checkoutDir%

.

Is there a way to get the dependency reference directory?

+3


source to share


2 answers


You can add a parameter (say checkoutDir

) to the first line, which is set to% teamcity.build.checkoutDir%. You can then get this value in the dependent assembly (either by snapshot or artifact dependency).



+4


source


I am using this myself and I can access my Checkout build dependent directory with ...

%dep.<dependecyID>.teamcity.build.default.checkoutDir%

      



I believe this will only work with the snapshot dependency though

+1


source







All Articles