Paul D'Ambra
Paul D'Ambra

Reputation: 7824

Updating the PATH of Teamcity Agent on Ubuntu

I have a TeamCity 8 agent running on Ubuntu.

Scripts that run within its context in TeamCity aren't aware of rvm so I want to amend its path.

So in buildAgent.properties I want to set

env.PATH=%PATH%:/home/build/.rvm/bin

and have the machines path expanded and then rvm appended.

That doesn't appear to work... should it? Is this possible?

Upvotes: 0

Views: 658

Answers (1)

Denis Lapuente
Denis Lapuente

Reputation: 141

It should work, but you are missing the "env." in front of the PATH in the right side of the assignment. Should be like this:

env.PATH=%env.PATH%:/home/build/.rvm/bin

Upvotes: 2

Related Questions