I'm using Rake for our unit tests. In the developers' environments, they update the RUBYLIB environment variable on their PCs to point to a directory of custom ruby classes to support the tests. This works fine in their environments.
I'm trying to recreate that now in TeamCity, such that the RUBYLIB environment variable is dynamically updated based on the agent's working directory.
In the configuration Build Parameters I have:
env.RUBYLIB = %teamcity.build.workingDir%\QA\test\lib
There is a corresponding VCS root that pulls these files from SVN, such that the \QA\test\lib directory is always checked out into the agent's working directory
When the agent runs the build, I see the RUBYLIB environment variable is updated correctly, but rake can't seem to find the files
I tried running it manually, by opening a command window directly in the agent's working directory and setting RUBYLIB to the same path as the build:
When I ran rake from this local command window, it worked fine
Is there any way the agent is not "loading" the environment variable properly, which would cause Rake to not find the necessary files?