How to install Ruby gems for all agents using TeamCity?

I am working on Teamcity 6.5.6 and am looking for a way to automatically install the required ruby ​​GEMS for build agents. For Ex: suppose I have two gems that are required on each agent / remote machine. Example: Vatira and Selena gems. Then I have to install them manually by logging into these machines, or I can save them in the shared library folder in SVN and perform some tasks in Teamcity to install them if they are not present on the machine. If so, what will happen to this task in Teamcity?

thanks

+7
source share
1 answer

Take a look at the Bundler .

You can save the list of required stones in the Gemfile, and then run bundle install on each machine before starting the build. This will install all the gems in the Gemfile (and you can lock the gems for a specific version, also including the Gemfile.lock file).

+5
source

All Articles