-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
38 lines (33 loc) · 942 Bytes
/
azure-pipelines.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
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.13'
windows:
imageName: 'vs2017-win2016'
pool:
vmImage: $(imageName)
demands: maven
steps:
- powershell: |
if($PSVersionTable.PSVersion.Major -lt 6)
{
Install-PackageProvider nuget -Force
}
Install-Module -Name PSScriptAnalyzer -RequiredVersion 1.17.1 -Scope "CurrentUser" -Force
displayName: 'Install PSScriptAnalyzer'
- task: Maven@3
displayName: 'Maven sonar-ps-plugin/pom.xml'
inputs:
mavenPomFile: 'sonar-ps-plugin/pom.xml'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**/*.jar'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.artifactstagingdirectory)'
artifactName: 'build-$(Agent.OS)'