Skip to content

Commit

Permalink
Update azure-pipelines-sq.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-paulger-sonarsource committed May 16, 2024
1 parent 8a316f1 commit 2a670f7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions azure-pipelines-sq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ steps:
versionSpec: '18.x'
displayName: 'Install Node.js'

- script: |
npm install
npm run build
displayName: "npm install and build"

- task: SonarQubePrepare@5
inputs:
SonarQube: 'local sq instance'
scannerMode: 'MSBuild'
projectKey: 'react-demo'
projectName: 'React Demo'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'react-demo'
cliProjectName: 'React Demo'
cliSources: '.'

- task: SonarQubeAnalyze@5
inputs:
jdkversion: 'JAVA_HOME_17_X64'
- task: SonarQubePublish@5
inputs:
pollingTimeoutSec: '300'

# this would go first, but I care more that the SQ tasks pass
- script: |
npm install
npm run build
displayName: "npm install and build"

0 comments on commit 2a670f7

Please sign in to comment.