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.
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.
You can't modify the configuration at the Bitbucket project level.
Manage configuration
To manage default tasks:
-
Select a star system.
-
From Apps
, select Repository Settings or select it from your pinned apps.
-
Select the Default tasks tab.
You can also manage default tasks with the Repository Settings API.
Add default tasks
To configure default tasks:
-
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.
-
From the Repository dropdown, select a repository.
-
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.
-
-
In Description, enter a list of default tasks.
Use Markdown formatting.
For details on the supported Markdown syntax, see the Markdown Syntax Guide. -
Select Add.
Edit default tasks
To edit default tasks:
-
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.
-
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:
-
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.
-
Select Delete
next to the element that you want to delete.
The deleted element is now crossed out.