Skip to content

Bitbucket

Initialization of the bitbucket ZenML integration.

BitbucketIntegration

Bases: Integration

Definition of bitbucket integration for ZenML.

Source code in src/zenml/integrations/bitbucket/__init__.py
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class BitbucketIntegration(Integration):
    """Definition of bitbucket integration for ZenML."""

    NAME = BITBUCKET
    REQUIREMENTS: List[str] = []

    @classmethod
    def plugin_flavors(cls) -> List[Type[BasePluginFlavor]]:
        """Declare the event flavors for the bitbucket integration.

        Returns:
            List of stack component flavors for this integration.
        """
        from zenml.integrations.bitbucket.plugins import BitbucketWebhookEventSourceFlavor

        return [BitbucketWebhookEventSourceFlavor]

plugin_flavors() classmethod

Declare the event flavors for the bitbucket integration.

Returns:

Type Description
List[Type[BasePluginFlavor]]

List of stack component flavors for this integration.

Source code in src/zenml/integrations/bitbucket/__init__.py
30
31
32
33
34
35
36
37
38
39
@classmethod
def plugin_flavors(cls) -> List[Type[BasePluginFlavor]]:
    """Declare the event flavors for the bitbucket integration.

    Returns:
        List of stack component flavors for this integration.
    """
    from zenml.integrations.bitbucket.plugins import BitbucketWebhookEventSourceFlavor

    return [BitbucketWebhookEventSourceFlavor]