All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.extension.bitbucket.cloud.property.BitbucketCloudProjectConfigurationProperty.kt Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
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"

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy