Access TeamCity Data Directory from the agent

Completed

Hello,

 

I'm trying to access the data directory of TeamCity (~/.BuildServer on Linux) from a BuildProcessAdapter class.

Is there any way to get this path?

 

Thanks,

Cédric Cousseran

1 comment

 I've found the solution.

In our agent you need to use a artifactsWatcher:

artifactsWatcher.addNewArtifactsPath(fileName);

You can then retrieve it on the server:

build.getArtifactsDirectory() + fileName
1

Please sign in to leave a comment.