Azure DevOps Bot for Detekt Report
The Azure DevOps Bot for Detekt Report step analyzes your Detekt report and posts the details to an open pull request in Azure DevOps. It also allows you to modify the pull request status.
Danger operates on a similar principle, allowing use of the Danger step with platforms such as GitHub, GitLab, and Bitbucket. However, Danger currently does not support Azure DevOps.
For more information, refer to the Appcircle blog post about Danger:
Prerequisites
Before running the Azure DevOps Bot for Detekt Report step, you must complete certain prerequisites, as detailed in the table below:
Prerequisite Workflow Step | Description |
---|---|
Detekt | In order to generate the Detekt report, the Detekt step must be executed beforehand. |
Input Variables
This step contains some input variable(s). It needs these variable(s) to work. The table below gives explanation for this variable(s).
Please do not use sensitive variables such as Username, Password, API Key, or Personal Access Key directly within the step.
We recommend using Environment Variables groups for such sensitive variables.
Variable Name | Description | Status |
---|---|---|
$AC_AZURE_ORG_NAME | Specifies the name of the Azure DevOps organization. You can find it in the Azure DevOps URL: https://dev.azure.com/{Your_Organization} . Check out this document to locate the organization name. | Required |
$AC_AZURE_PROJECT_NAME | Specifies the name of the Azure DevOps project. You can find it in the Azure DevOps URL: https://dev.azure.com/{Your_Organization}/{Your_Project} . For more information about Azure DevOps projects, refer to this document. | Required |
$AC_AZURE_REPO_NAME | Specifies the name of the Azure DevOps repository. Check out this document for more details about Azure DevOps repositories. | Required |
$AC_AZURE_BASE_URL | Specifies the base URL of Azure DevOps. The default value is https://dev.azure.com . | Required |
$AC_AZURE_API_KEY | Specifies the API key for Azure DevOps. Refer to this document for details on how to obtain it. | Required |
$AC_DETEKT_FILE_PATH | Specifies the file path of the Detekt report. If you used the Detekt step in the previous stage, this section will be automatically filled. The default value is $AC_DETEKT_OUTPUT_PATH , which represents the output of the Detekt step. | Required |
$AC_DOMAIN_NAME | Specifies the domain name of Appcircle. The default value is my.appcircle.io , which is the domain for Appcircle Cloud. | Required |
$AC_AZURE_API_VERSION | Specifies the version of the Azure API, for example: 7.1 . Refer to the REST API versioning document for more information. | Required |
To access the source code of this component, please use the following link: