1 comment
Avatar
Fedor Rumyantsev

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:

/app/rest/buildTypes?fields=buildType(id,name,webUrl,settings($locator(name:checkoutMode),property(value)))

or for a specific configuration:

/app/rest/buildTypes/id:<build configuration ID>?fields=id,name,webUrl,settings($locator(name:checkoutMode),property(value))

If build configuration uses a non-default setting (e.g. not Prefer to checkout files on agent side), you will see the following response:

<buildType id="Support_Test" name="Test" webUrl="http://localhost:8111/viewType.html?buildTypeId=Support_Test">
<script/>
<settings>
<property value="ON_SERVER"/>
</settings>
</buildType>

Otherwise, settings block will be empty. 

Please let me know if this helps.

0

Please sign in to leave a comment.