BitBucket pipe + Sonar Cloud + Node js

Hi ,

can i get the sample code for BitBucket pipe + Sonar Cloud + Node js (bitbucket-pipelines.yml) .

I used the following command but not working fine. Unable search the right forum.

  • step: &SonarCloud
    name: SonarCloud SCA
    image: node:14-alpine
    caches:
    - node
    - sonar
    script:
    - pipe: sonarsource/sonarcloud-scan:1.2.1
    variables:
    SONAR_TOKEN: ${SONAR_TOKEN}
    EXTRA_ARGS: ‘-Dsonar.sources=src -Dsonar.tests=src’

Thanks ,
Vengadeshan M

BitBucket pipe + Sonar Cloud + Node js

  1. Sonar cloud scan for nodejs application from BitBucket
  2. Sonar cloud quality gate check for nodejs application from BitBucket

Hey there.

Firstly, there’s a tutorial right in the UI when you create a project.

Secondly…

What about it isn’t working fine? Do you get an error? Unxpected results? There’s not much to go off of here.