Skip to content

Instantly share code, notes, and snippets.

@GetoXs
Last active December 29, 2022 17:06
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