Last active
December 29, 2022 17:06
-
-
Save GetoXs/e2b323b048aad88c12a10aceba3cc6cd to your computer and use it in GitHub Desktop.
Optimized Bitbucket pipeline with SonarCloud pipe and proper cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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