repository

fun repository(vcsRoot: VcsRoot, enabled: Boolean = true, checkoutPath: String = "")

Adds a repository to the job using a VCS root with a checkout path.


fun repository(vcsRoot: Id, enabled: Boolean = true, checkoutPath: String = "")

Adds a repository to the job using an ID reference with a checkout path.


fun repository(vcsRoot: VcsRoot, enabled: Boolean = true, checkoutRules: List<String>)

Deprecated

Checkout rules support is in development and should not be used.

Adds a repository to the job using a VCS root with checkout rules.


fun repository(vcsRoot: Id, enabled: Boolean = true, checkoutRules: List<String>)

Deprecated

Checkout rules support is in development and should not be used.

Adds a repository to the job using an ID reference with checkout rules.