TeamCity On-Premises 2024.07 Help

Build Working Directory

The build working directory is the directory set as current for the build process. By default, this is the same directory as the build checkout directory.

If a build script needs to run from a location other than the checkout directory, you can specify the location explicitly using the Working Directory field of the Advanced options in the build step settings.

The path entered in the Working Directory field can be either absolute or relative to the build checkout directory. When using this option, all the other paths should still be entered relative to the checkout directory.

The path to the build working directory is available as the teamcity.build.workingDir predefined parameter.

Last modified: 18 September 2024