jetbrains.buildServer.configs.kotlin.v2018_1.buildFeatures / CommitStatusPublisher

CommitStatusPublisher

open class CommitStatusPublisher : BuildFeature

A build feature publishing status to external system

See Also

commitStatusPublisher

Types

FileEncoding

enum class FileEncoding

Publisher

sealed class Publisher : CompoundParam<Publisher>

Constructors

<init>

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

A build feature publishing status to external system

Properties

publisher

var publisher: Publisher?

Specifies to which system a status should be published

vcsRootExtId

var vcsRootExtId: String?

Id of the VCS root for which commits a status should be published. Set to an empty string to publish status for all VCS roots attached to a build configuration.

Inherited Properties

enabled

var enabled: Boolean

Specifies whether the feature is enabled, true by default

id

var id: String?

Build feature id, if not specified will be generated

type

var type: String

Build feature type

Functions

bitbucketCloud

fun bitbucketCloud(init: BitbucketCloud.() -> Unit = {}): BitbucketCloud

Publish status to Bitbucket Cloud

bitbucketServer

fun bitbucketServer(init: BitbucketServer.() -> Unit = {}): BitbucketServer

Publish status to Bitbucket Server

gerrit

fun gerrit(init: Gerrit.() -> Unit = {}): Gerrit

Publish status to Gerrit Code Review

github

fun github(init: Github.() -> Unit = {}): Github

Publish status to GitHub

gitlab

fun gitlab(init: Gitlab.() -> Unit = {}): Gitlab

Publish status to GitLab

tfs

fun tfs(init: Tfs.() -> Unit = {}): Tfs

Publish build status to Azure DevOps / TFS

upsource

fun upsource(init: Upsource.() -> Unit = {}): Upsource

Publish status to Upsource

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): BuildFeature

Creates an instance of this build feature 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.

toString

open fun toString(): String