RakeStep
A Rake build step.
Example. Adds a simple Rake build step with default Ruby interpreter settings, launching parameters and test reporting.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
rake {
name = "My Rake step"
rakefile = file {
path = "build/Rakefile"
}
tasks = "mytask:test mytask:test2"
}
Content copied to clipboard }
}
Example. Adds a Rake build step with Rakefile script content and custom Rake parameters, custom Ruby interpreter settings, custom launching parameters and test reporting.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
rake {
name = "My Rake step"
workingDir = "project/"
rakefile = content {
content = """
// Rakefile content
// goes here ...
""".trimIndent()
}
tasks = "mytask:test mytask:test2"
rakeAdditionalParameters = "--trace"
rubyInterpreterMode = rvm {
rvmInterpreter = "jruby-1.4.0"
}
execBundle = false
trackInvokeExecuteStages = true
interpreterAdditionalParameters = "-J-Xmx512m"
enableTestUnit = false
enableTestSpec = true
enableShoulda = true
rspecSpecOptions = "user options"
cucumberOptions = "user options"
}
Content copied to clipboard }
}
See also
Constructors
Types
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Use Ruby interpreter settings defined in the Ruby environment configurator build feature settings or the interpreter will be searched in the PATH.
Validates this object and reports found errors to the provided consumer
Properties
If your project uses the Bundler requirements manager and your Rakefile doesn't load the bundler setup script, this option will allow you to launch rake tasks using the bundle exec command emulation. If you want to execute bundle install command, you need to do it in the Command Line step before the Rake step. Also, remember to set up the Ruby environment configurator build feature to automatically pass Ruby interpreter to the command line runner.
Build working directory for ant script, specify it if it is different from the checkout directory.