jetbrains.buildServer.configs.kotlin.v2017_2.vcs / PerforceVcsRoot

PerforceVcsRoot

open class PerforceVcsRoot : VcsRoot

Perforce VCS root

Types

Mode

sealed class Mode : CompoundParam<Mode>

Constructors

<init>

PerforceVcsRoot(init: PerforceVcsRoot.() -> Unit)PerforceVcsRoot()

Perforce VCS root

Properties

charsetName

var charsetName: String?

A charset to use on the client machine

checkoutRevision

var checkoutRevision: String?

Custom Perforce revision to checkout

mode

var mode: Mode?

A mode of Perforce connection

nonStreamWorkspace

var nonStreamWorkspace: Boolean?

When set, the created Perforce workspace on agent will not be stream-enabled. The option allows using arbitrary checkout rules, but prohibits commits from agent into the stream.

p4Path

var p4Path: String?

A path to p4 executable

password

var password: String?

A password for Perforce connection

port

var port: String?

A Perforce server address in the "host:port" format

runP4Clean

var runP4Clean: Boolean?

Whether TeamCity should run 'p4 clean' command before the build

skipHaveListUpdate

var skipHaveListUpdate: String?

Whether TeamCity should track files on the Perforce server on sync

supportUtf16

var supportUtf16: Boolean?

Enables support for files with UTF-16 encoding

syncOptions

var syncOptions: String?

Additional options for the p4 sync command

useTicketBasedAuth

var useTicketBasedAuth: Boolean?

userName

var userName: String?

A username for Perforce connection

workspaceOptions

var workspaceOptions: String?

Settings for the p4 client command.

Inherited Properties

extId

var extId: String

VCS root id. It appears in web UI and is used in urls. Can be changed at any time. But be aware that some settings use it, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too.

id

var id: String

VCS root id. It appears in web UI and is used in urls. Can be changed at any time. But be aware that some settings use it, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too.

name

var name: String

VCS root name

pollInterval

var pollInterval: Int?

VCS root polling interval

type

var type: String

VCS type

uuid

var uuid: String

VCS root uuid. It is mandatory, TeamCity uses it to identify entities. If root's uuid changes, TeamCity considers it to be a new VCS root.

Functions

client

fun client(init: Client.() -> Unit = {}): Client

Connect to to Perforce using the specified client name

clientMapping

fun clientMapping(init: ClientMapping.() -> Unit = {}): ClientMapping

Connect to Perforce using the specified client mapping

stream

fun stream(init: Stream.() -> Unit = {}): Stream

Connect to Perforce stream with specified name

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): VcsRoot

Creates an instance of this VCS root via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

equals

open fun equals(other: Any?): Boolean

toString

open fun toString(): String