Skip to content

Commit

Permalink
Create azure-pipelines-sq-v4.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-paulger-sonarsource authored May 30, 2024
1 parent 506f6d5 commit 498c947
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions azure-pipelines-sq-v4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

pool:
vmImage: ubuntu-latest

steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
displayName: 'Install Node.js'

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

- task: SonarQubeAnalyze@4

- task: SonarQubePublish@4
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 498c947

Please sign in to comment.