jetbrains.buildServer.configs.kotlin.v10 / VcsSettings

VcsSettings

class VcsSettings

Contains settings from the Version Control Settings tab of build configuration or template.

Constructors

<init>

VcsSettings(base: VcsSettings? = null, init: VcsSettings.() -> Unit = {})

Properties

branchFilter

var branchFilter: String?

Defines branch filter to be used for branches coming from snapshot dependencies.

buildDefaultBranch

var buildDefaultBranch: Boolean?

Whether builds in the default branch are allowed and the default branch is shown in UI. By default true.

checkoutDir

var checkoutDir: String?

Custom build checkout directory. By default empty, ie. build uses default checkout directory.

checkoutMode

var checkoutMode: CheckoutMode?

Defines a preferred checkout mode for the build.

cleanCheckout

var cleanCheckout: Boolean?

If true, all files in build's working directory will be deleted before the build is started. By default false.

excludeDefaultBranchChanges

var excludeDefaultBranchChanges: Boolean?

Whether changes reachable from the default branch should be excluded from other branches. By default false.

showDependenciesChanges

var showDependenciesChanges: Boolean?

If true, build will include snapshot dependencies changes when reporting changes on UI. By default false

Functions

plus

operator fun plus(other: VcsSettings): VcsSettings

root

fun root(root: VcsRoot, vararg rules: String): Unit

Attaches the specified VCS root with the given checkout rules to a template or buildType

fun root(rootExtId: String, vararg rules: String): Unit

Attaches a VCS root with the specified extId with the given checkout rules to a template or buildType. This method can be used to attach a VCS root which is not defined in Kotlin.