How to integrate sonarqube for react js in azure devops pipeline ?

Copper Contributor

Hi Team,

I have added sonarqube stage in my yaml file for React js application.

But it is not showing in sonarqube, service connection between SQ and ADO is done and it is working for maven builds.

 

Please let me know the exact document or steps for react js pipeline as well.

 

- task: SonarQubePrepare@5
  inputs:
    SonarQube: '<my service connection>'
    scannerMode: 'CLI'
    configMode: 'file'
    configFile: 'sonar-project.properties'
    extraProperties: |
     sonar.javascript.lcov.reportPaths=coverage/lcov-report/lcov.info
  displayName: 'Prepare SonarQube Analysis'
 
sonar-project.properties 
 
sonar.projectKey=com.cat.rcc:rcc-UI
sonar.projectName=UI App
sonar.sources=src
sonar.exclusions=**/*.test.js
sonar.tests=src
sonar.test.inclusions=**/*.test.js
sonar.javascript.lcov.reportPaths=coverage/lcov-report/lcov.info
sonar.login= <what will be value ?>
 
Please help on this
0 Replies