repository

fun repository(vcsRoot: VcsRoot, enabledByDefault: Boolean = true)

Adds a repository to the pipeline using a VCS root.

Parameters

vcsRoot

The VCS root to add

enabledByDefault

Whether this repository should be automatically checked out in jobs by default


fun repository(id: Id, enabledByDefault: Boolean = true)

Adds a repository to the pipeline using an ID reference.

Parameters

id

The ID of the VCS root to add

enabledByDefault

Whether this repository should be automatically checked out in jobs by default