VcsSettings

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Defines branch filter which can be used to limit the branches visible in the build configuration.

Link copied to clipboard

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

Link copied to clipboard

Custom build checkout directory. By default, empty, i.e. build uses the default checkout directory.

Link copied to clipboard

Defines a preferred checkout mode for the build.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard

Copies the receiver vcs settings

Link copied to clipboard

Copies the receiver vcs settings to the specified target

Link copied to clipboard
fun getEntry(rootId: Id): VcsRootEntry?
Link copied to clipboard
fun option(name: String, value: String)

Sets option with specified name and value

Link copied to clipboard
fun removeEntry(rootId: Id)
Link copied to clipboard
fun root(rootId: Id, vararg rules: String)

Attaches a VCS root with the specified id 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.

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

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