This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines-dev.yml
77 lines (62 loc) · 1.71 KB
/
azure-pipelines-dev.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
trigger:
- Development
pool:
vmImage: 'ubuntu-latest'
variables:
major: 1
minor: 0
name: $(major).$(minor)$(Rev:.r)
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
- script: npm run build
displayName: "npm build"
- task: CopyFiles@2
inputs:
Contents: 'web.config'
TargetFolder: build
- task: CopyFiles@2
displayName: 'Copy Build Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: build
TargetFolder: '$(Build.ArtifactStagingDirectory)/build'
# - task: CopyFiles@2
# displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
# inputs:
# SourceFolder: config
# TargetFolder: '$(Build.ArtifactStagingDirectory)/config'
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts: drop'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: Veracode@3
inputs:
ConnectionDetailsSelection: 'Endpoint'
AnalysisService: 'Veracode'
veracodeAppProfile: 'New.VaccineCredentialUI'
version: '$(build.buildNumber)'
filepath: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
createProfile: true
maximumWaitTime: '360'
- task: SonarQubePrepare@4
inputs:
SonarQube: 'SonarQube'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: 'VaccineCredentialUIDev'
cliProjectName: 'VaccineCredentialUIDev'
cliSources: '.'
- task: SonarQubeAnalyze@4
- task: SonarQubePublish@4
inputs:
pollingTimeoutSec: '300'