Build Check for Salesforce - Bitbucket enables you to scan your code
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
- pipe: qualityclouds/livecheck-bitbucket-pipe:latest
variables:
QC_API_KEY: "<string>"
ISSUES_THRESHOLD: "10000"
SEVERITY_THRESHOLD: "10000"
TECHDEBT_THRESHOLD: "0"
| Variable | Usage |
|---|---|
| QC_API_KEY (*) | A Quality Clouds API key. Contact your Quality Clouds administrator or support to obtain one. If you're an admin, check the Administering API keys article. Once obtained, it should be stored as a secured variable. |
| ISSUES_THRESHOLD | Specifies the number of issues at which you want to fail the process and stop the deployment. This requires a numeric value. |
| SEVERITY_THRESHOLD | Specifies the number of issues at which you want to fail the process and stop the deployment. This requires a numeric value. |
| TECHDEBT_THRESHOLD | Specifies the ratio of configuration elements (CEs) - included in the build that have at least one issue - at which you want to stop to fail the process and stop the deployment. This requires a numeric value. |
(*) = required variable
You need to provide a valid API key to connect the Quality Clouds ruleset against which your code will be checked. To obtain an API key, contact your Quality Clouds admin. If you're an admin, check the Administering API keys article.
Example using secured variable $QC_API_KEY
- pipe: qualityclouds/livecheck-bitbucket-pipe:latest
variables:
QC_API_KEY: $QC_API_KEY
.cls ...
First version of the pipe. It includes variable to run the check and set the success/fail criteria.
See our documentation for details.
If you'd like help, or you want to report an issue, contact us at [email protected].
Content type
Image
Digest
sha256:03f61987c…
Size
51.9 MB
Last updated
8 days ago
docker pull qualityclouds/bitbucket-pipeline-salesforce