Skip to end of metadata
Go to start of metadata

The Simple Build Tool (Scala) runner natively supports SBT builds: you can build your code, run tests and see the results in a handy way in TeamCity. The supported SBT version 0.13.+.
The runner, formerly provided as a standalone plugin, is bundled since TeamCity 9.1.

SBT runner settings

SBT parameters

Option

Description

SBT commands

Commands to execute, e.g. clean "set scalaVersion:="2.11.6"" compile test or ;clean;set scalaVersion:="2.11.6";compile;test.

SBT installation mode

When the default <Auto> option is selected, the latest SBT version will be installed on every TeamCity agent your build will be running. To specify an existing installation, use the <Custom> mode. The sbt-launch.jar from the \bin directory of the SBT home will be launched.

SBT home path

Available if <Custom> is selected in the option above. The path to the existing SBT installation directory.

Working directory

Optional. Specify the build working directory if it differs from the build checkout directory.

Java Parameters

Option

Description

JDK

When <Default> is selected, the JDK specified in the JAVA_HOME environment variable on the agent or the agent's own Java is used to run the build process. Set to <Custom> to use a custom JDK.

JDK home path

Available if <Custom> is selected in the option above. Specify the path to your custom JDK which will be used to run the build.

JVM command line parameters

Specify the desired Java Virtual Machine parameters, such as maximum heap size or parameters that enable remote debugging. These settings are passed to the JVM used to run your build.
Example:

  • No labels