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

。_饼干妹妹 提交于 2019-12-03 15:12:19

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

You can configure the environment in conf/buildAgent.properties 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:

env.MAKEFLAGS=-j8
env.PATH=/usr/local/bin:%env.PATH%

(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.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!