diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 15164f2..f62665e 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -1,11 +1,11 @@ image: node:lts clone: - depth: full # SonarQube Cloud scanner needs the full history to assign issues properly + depth: full definitions: caches: - sonar: ~/.sonar # Caching SonarQube Cloud artifacts will speed up your build + sonar: ~/.sonar services: docker: @@ -23,7 +23,7 @@ definitions: - npm run coverage - pipe: sonarsource/sonarcloud-scan:4.0.0 -pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html +pipelines: branches: - production: + sonar-test: - step: *test-sonarcloud