Sign inSign up

qualityclouds/bitbucket-pipeline-salesforce

By qualityclouds

•Updated 8 days ago

Image
0

3.2K

qualityclouds/bitbucket-pipeline-salesforce repository overview

⁠Build Check for Salesforce - Bitbucket

Build Check for Salesforce - Bitbucket enables you to scan your code

⁠YAML Definition

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"

⁠Variables

VariableUsage
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_THRESHOLDSpecifies the number of issues at which you want to fail the process and stop the deployment. This requires a numeric value.
SEVERITY_THRESHOLDSpecifies the number of issues at which you want to fail the process and stop the deployment. This requires a numeric value.
TECHDEBT_THRESHOLDSpecifies 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

⁠Prerequisites

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⁠.

⁠Examples

Example using secured variable $QC_API_KEY

- pipe: qualityclouds/livecheck-bitbucket-pipe:latest
  variables:
    QC_API_KEY: $QC_API_KEY

⁠Supported file types

.cls ...

⁠Release Notes

⁠Version 1.0.0

First version of the pipe. It includes variable to run the check and set the success/fail criteria.

⁠Help and Support

See our documentation⁠ for details.

If you'd like help, or you want to report an issue, contact us at [email protected]⁠.

Tag summary

Content type

Image

Digest

sha256:03f61987c…

Size

51.9 MB

Last updated

8 days ago

docker pull qualityclouds/bitbucket-pipeline-salesforce