Have task - deploy application.war
in to Tomcat's directory after build.
application.war
collected from buildAgent
box to server box. But - it always have different absolute path - because uses buildId
in pathname:
/home/teamcity/.BuildServer/system/artifacts/ProjectName/buildName/BUILD_ID/application.war
Using any path for target directories like ...\application.war => /home/teamcity/directory
- does'n put file in to /home/teamcity/directory
in TeamCity home - it always uses /home/teamcity/.BuildServer/system/artifacts/buildName/BUILD_ID/home/teamcity/directory
as "HOME"
.
So - I can't us deploy.script
- because it don't know current BUILD_ID
.
What is correct way to solve it?
UPD changing variable TEAMCITY_DATA_PATH
affect whole server inculding configs etc. How can be changed only "artifacts storage"?