net.nemerosa.ontrack.extension.bitbucket.cloud.property.BitbucketCloudProjectConfigurationProperty.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-extension-bitbucket-cloud Show documentation
Show all versions of ontrack-extension-bitbucket-cloud Show documentation
Ontrack module: ontrack-extension-bitbucket-cloud
package net.nemerosa.ontrack.extension.bitbucket.cloud.property
import net.nemerosa.ontrack.extension.bitbucket.cloud.configuration.BitbucketCloudConfiguration
import net.nemerosa.ontrack.model.support.ConfigurationProperty
/**
* Link between a project and a Bitbucket Cloud repository.
*
* @property configuration Link to the Bitbucket Cloud configuration
* @property repository Repository in Bitbucket Cloud
* @property indexationInterval Indexation interval
* @property issueServiceConfigurationIdentifier ID to the [net.nemerosa.ontrack.extension.issues.model.IssueServiceConfiguration] associated
* with this repository.
*/
class BitbucketCloudProjectConfigurationProperty(
override val configuration: BitbucketCloudConfiguration,
val repository: String,
val indexationInterval: Int,
val issueServiceConfigurationIdentifier: String?
) : ConfigurationProperty {
/**
* Gets the URL to the repository
*/
val repositoryUrl: String get() = "https://bitbucket.org/${configuration.workspace}/$repository"
}