Skip to content

Bitbucket Maven Plugin

Maven Central Version

Update or creates a Bitbucket cloud Code Insights report based on json files in gitci format previously generated into standard pitest target directories.

Note that, since code insights annotations are only shown for lines changed within a PR, the insights goal cannot be used when using git_test or git_mixed modes.

Updates a Bitbucket cloud PR with comments based on json files in gitci format previously generated into standard pitest target directories.

Updates or creates Code Insights report on a self-hosted instance of bitbucket, based on json files in gitci format previously generated into standard pitest target directories.

Note that, since code insights annotations are only shown for lines changed within a PR, the insights goal cannot be used when using git_test or git_mixed modes.

Updates a PR on a self-hosted instance of bitbucket, based on json files in gitci format previously generated into standard pitest target directories.

When running in Bitbucket pipelines, all required parameters (expect authentication details) will be autoset from environment variables.

For other CI environments these parameters must be explicitly set.

Required

An App password token with write access to PRs in the repository. If present, this property will be automatically populated from an environment variable named REPO_TOKEN.

This environment variable is not automatically supplied by Bitbucket Pipelines.

Optional

Required when authenticating using an App password

The user associated with the App password. If present, this property will be automatically populated from an environment variable named REPO_USER.

This environment variable is not automatically supplied by Bitbucket Pipelines.

Optional

Defaults to false. Should be set to true when authenticating with an App password.

Required

Autoset

The repository to update. If present, this property will be automatically populated from an environment variable named BITBUCKET_REPO_SLUG.

This environment variable is automatically set by Bitbucket Pipelines.

Required

Autoset

The pull request to update. If present, this property will be automatically populated from an environment variable named BITBUCKET_PR_ID.

This environment variable is automatically set by Bitbucket Pipelines.

Required (bitbucket-cloud)

Autoset

The workspace the repository belongs to. If present, this property will be automatically populated from an environment variable named BITBUCKET_WORKSPACE.

This environment variable is automatically set by Bitbucket Pipelines.

Required

The base URL of the bitbucket api. For the bitbucket-cloud goal this will be defaulted to https://api.bitbucket.org/2.0 if not supplied. For the bitbucket-server goal a value must always be supplied manually e.g. http://your.domain/rest/api/1.0/.

Required (bitbucket-server)

The project the repository is part of. This parameter is required for the bitbucket-server goal, but should not be set when using bitbucket-cloud.

Required (bitbucket-cloud-insights, bitbucket-insights)

Autoset

The commit to attach the Code Insights report to. If present, this property will be automatically populated from an environment variable named BITBUCKET_COMMIT.

This environment variable is automatically set by Bitbucket Pipelines.

Optional

Key to use when creating a Code Insights report. Defaults to com.arcmutate.

Multiple reports can be created within a PR if each is given a unique key.

Optional

Title to use when creating a Code Insights report. Defaults to Arcmutate Mutation Analysis

Optional

When set, arcmutate will include links to information about the mutator in the mutant.

Defaults to true.

Optional

Character string to use in summary table for surviving mutants.

Optional

Character string to use in summary table when no surviving mutants.

Optional

Custom text to place at end of summary.