-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-sq-v7.yml
42 lines (35 loc) · 1014 Bytes
/
azure-pipelines-sq-v7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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
trigger: none
pool:
vmImage: windows-latest
variables:
JAVA_HOME_17_X64: ''
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
displayName: 'Install Node.js'
- task: SonarQubePrepare@7
inputs:
SonarQube: 'local sq instance'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'react-demo_react-demo_7f9c8aba-6527-485f-882b-ff6f6d3890f4'
cliSources: '.'
extraProperties: |
sonar.token=sqa_695aa8e50fb5c1b679c34ab3b999854a1d72b833
sonar.scanner.skipJreProvisioning=true
- task: SonarQubeAnalyze@7
inputs:
jdkversion: 'JAVA_HOME_17_X64'
- task: SonarQubePublish@7
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"