Copy file (build step - Command line)


there is Ruby on Rails project with database.yml not under VCS. Is it possible to set a Build Step (Command line) to copy database.yml to the build dirctory.
Something like: cp /some/location/database.yml /path/to/current/build/directory

e.g. How could i set current build directory?


1 comment
Comment actions Permalink

You can use relative paths - your build script is started right from build checkout directory.
But absolute path can be obtained too.
There is a set of Predefined Build Parameters that can be referenced by your build script.
For tools like Ant or MSBuild you can access them directly. For command line runner you'll have to explicitly set new environment variable in build configurationб and refer it to


Please sign in to leave a comment.