Skip to main content

Default tasks

By configuring default tasks, you ensure that in Bitbucket additional tasks are added to all the new pull requests that match the defined source and target branches.

Note:

Access to this feature is limited to users who already have access to CI Manager.

Default configuration

By default, there are no default tasks configured for your repositories. This configuration is defined on the star system (physical star system) level and, by default, inherited by each repository. You can create a different custom configuration for each repository in your project.

Note:

You can't modify the configuration at the Bitbucket project level.

Manage configuration

To manage default tasks:

  1. Select a star system.

  2. From Apps , select Repository Settings or select it from your pinned apps.

  3. Select the Default tasks tab.

You can also manage default tasks with the Repository Settings API.

Add default tasks

To configure default tasks:

  1. In the Default tasks tab, select + Add default task.

    You can also select + Add default task next to the repository whose settings you want to change. Then in the dropdown, you can see the pre-selected repository.

  2. From the Repository dropdown, select a repository.

  3. Specify the source and target branches. You have the following options:

    • Any branch

      Applies to all branches.

    • Branch name

      Applies only to a branch with the specified name. The branch must be active.

    • Branch pattern

      Applies to every branch whose name matches the pattern. For details, see Branch patterns.

    • Branch type

      Possible types are Development, Production, Bugfix, Feature, Hotfix, or Release. The available values depend on your branch configuration.

      You can modify the branch configuration with the Repository Settings API.

  4. In Description, enter a list of default tasks.

    Use Markdown formatting.
    For details on the supported Markdown syntax, see the Markdown Syntax Guide.

  5. Select Add.

Edit default tasks

To edit default tasks:

  1. In the Default tasks tab, expand the configuration for a repository.

    For Jutro apps and Integration apps, select a repository from a drop-down list.

  2. Select Edit next to the element that you want to modify.

Note that you can only edit the descriptions of the default tasks. You can't edit the source and target branches.

Delete default tasks

To delete default tasks:

  1. In the Default tasks tab, expand the configuration for a selected repository.

    For Jutro apps and Integration apps, select a repository from a drop-down list.

  2. Select Delete next to the element that you want to delete.

    The deleted element is now crossed out.