Unable to render embedded object: File (TeamCity48.png) not found.

TeamCity 9.x Documentation

Documentation for Previous Versions

Icon

You are viewing the documentation of TeamCity 9.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.

 
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Ruby environment configurator build feature passes Ruby interpreter to all build steps. The build feature adds selected Ruby interpreter and gems bin directories to system PATH environment variable and configures other necessary environment variables in case of RVM interpreter. E.g. in Command Line build runner you will be able to directly use such commands as ruby, rake, gem, bundle, etc. Thus if you want to install gems before launching Rake build runner you need to add Command Line build step which launches custom script like:

Ruby Environment Configurator Settings

Option

Description

Ruby interpreter path

Path to Ruby interpreter. If not specified the interpreter will be searched in the PATH. In this field you can use values of environment and system variables.
For example:

RVM interpreter

Specify here the RVM interpreter name and optionally a gemset configured on a build agent.
Note, that interpreter name cannot be empty. If gemset isn't specified the default one will be used.

Icon

This option can be used if you don't want use .rvmrc settings, for instance to run tests on different ruby interpreters instead of hardcoded in .rvmrc file.

RVM with .rvmrc file

Since TeamCity 7.1 Specify here the path to a .rvmrc file which should be relative to the checkout directory. If the file is specified, TeamCity will fetch environment variables using rvm-shell and will pass it to all build steps.

Fail build if Ruby interpreter wasn't found

Check the option to fail build if Ruby environment configurator cannot pass Ruby interpreter to step execution environment because the interpreter wasn't found on agent.



See also:

Administrator's Guide: Configuring Build Steps | Command Line | Rake

  • No labels