A merge queue check module defines a Java component that enforces a specific merge pre-condition on pull requests in a merge queue. For example a merge queue check could be used to verify a successful build of the prepared merge commit in an external CI system.
Merge queue checks return a result state:
See the how-to guide for more information on creating a merge queue check.
The root element for the Merge Queue Check plugin module is <merge-queue-check/>. It allows the following
configuration attributes:
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The identifier of the plugin module. This key must be unique within the plugin where it is defined. | N/A |
| class | Yes | The fully qualified Java class name of the class that implements the Merge Queue Check SPI. This class must implement MergeQueueCheck. | N/A |
Here is an example atlassian-plugin.xml file containing a merge queue check module registration.
1 2<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}" /> </plugin-info> <merge-queue-check key="example-merge-queue-check" class="com.example.mergequeue.ExampleMergeQueueCheck"/> </atlassian-plugin>
Rate this page: