Skip to content

Instantly share code, notes, and snippets.

@GetoXs
Last active December 29, 2022 17:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GetoXs/e2b323b048aad88c12a10aceba3cc6cd to your computer and use it in GitHub Desktop.
Save GetoXs/e2b323b048aad88c12a10aceba3cc6cd to your computer and use it in GitHub Desktop.
Optimized Bitbucket pipeline with SonarCloud pipe and proper cache
image: atlassian/default-image:2
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
services:
docker:
memory: 2560
steps:
- step: &sca
image: atlassian/default-image:2 #quickest image
name: SonarCube SCA
caches:
- docker
script:
- pipe: sonarsource/sonarcloud-scan:1.1.0
- pipe: sonarsource/sonarcloud-quality-gate:0.1.3
services:
- docker
pipelines:
pull-requests:
'**':
- step: *sca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment