Setting VCS checkout mode via the API
I am looking for clarification on the API payload syntax to set the "VCS checkout mode" of a build configuration to "Always checkout files on server".
I suspect it is this API endpoint but I cant find the syntax for this option anywhere:
Edit Build Configuration Settings | TeamCity REST API Reference Documentation (jetbrains.com)
Any help would be appreciated.
Please sign in to leave a comment.
Hello Steven,
Unfortunately, there is no specific field for that - however, we have a feature request on the matter. Please consider voting or commenting on it to keep track on the issue progress.
For now, you may use the following request to get this setting value for all build configurations:
or for a specific configuration:
If build configuration uses a non-default setting (e.g. not Prefer to checkout files on agent side), you will see the following response:
Otherwise, settings block will be empty.
Please let me know if this helps.