Integrating CodeScan in Bitbucket Pipelines
image: salesforce/salesforcedx #Your docker image, complete with node and java (8+) installed.
pipelines:
pull-requests:
'master': #The destination branch of the pull requests we’ll be checking
- step:
caches:
- node
script:
- echo y|sfdx plugins:install sfdx-codescan-plugin
- sfdx codescan:run --token=$codescan_token --projectkey=project1 --organization=<your CodeScan Cloud Organisation key>
branches:
'master': #The branch of the project we’ll be tracking the history of
- step:
caches:
- node
script:
- echo y|sfdx plugins:install sfdx-codescan-plugin
- sfdx codescan:run --token=$codescan_token --projectkey=project1 --organization=<your CodeScan Cloud Organisation key>Last updated
Was this helpful?

