How can I set environment variables PATH and LD_LIBRARY_PATH on Unix TeamCity build agent?

I use TeamCity to build c++ on Unix (Solaris). TeamCity invokes make, and within my makefile I need to call svn. For this I need to modify PATH and LD_LIBRARY_PATH.

I could set these within the makefile but the locations vary from server to server. does anyone know a way to set these for each TeamCity build agent, e.g. by editing conf/

I could set them in ~/.login etc for the TeamCity build account, but I would prefer not to as it is a shared account.

-thanks, Barney


You could create a wrapper script that exports these variables before executing the TeamCity command.

You can configure the environment in conf/ as you suspected, by setting properties that begin with env.. It works for both setting variables from scratch and modifying existing values. Mine looks like this:


(It's hidden in the docs. I'm not sure if 5.0 had this (I think it did, though), but 7.0 definitely does.)

Need Your Help

Java Canvas Drawing

java canvas paint

Edit 4: A new formatting for the question

Extract text from URL using javascript and display on php file

javascript php

I have an error message on the URL when wrong password or captcha is added. Error looks like this on the url:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.