forked from felipebz/zpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yaml
79 lines (68 loc) · 2.54 KB
/
azure-pipelines.yaml
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
78
79
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
CI:
TESTS: ci
ITS-MIN:
TESTS: it
SQ_VERSION: 7.6
ITS-LATEST:
TESTS: it
SQ_VERSION: LATEST_RELEASE
ITS-NEXT:
TESTS: it
SQ_VERSION: DEV
steps:
- script: |
./ci.sh
displayName: 'Build with Maven'
env:
DEPLOY_USERNAME: $(DEPLOY_USERNAME)
DEPLOY_PASSWORD: $(DEPLOY_PASSWORD)
BINTRAY_DEPLOY_PASSWORD: $(BINTRAY_DEPLOY_PASSWORD)
BINTRAY_DEPLOY_USERNAME: $(BINTRAY_DEPLOY_USERNAME)
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: SonarQubePrepare@4
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
SonarQube: 'SonarQube'
scannerMode: 'Other'
- task: Maven@3
inputs:
goals: 'org.jacoco:jacoco-maven-plugin:prepare-agent package org.jacoco:jacoco-maven-plugin:report org.jacoco:jacoco-maven-plugin:report-aggregate'
jdkVersionOption: 1.11
sonarQubeRunAnalysis: true
- task: CopyFiles@2
displayName: 'Copy artifact: sonar-plsql-open-plugin'
inputs:
sourceFolder: '$(system.defaultworkingdirectory)'
contents: 'sonar-plsql-open-plugin/target/sonar-plsql-open-plugin*.jar'
targetFolder: '$(build.artifactstagingdirectory)/plugin'
flattenFolders: true
- task: CopyFiles@2
displayName: 'Copy artifact: zpa-toolkit'
inputs:
sourceFolder: '$(system.defaultworkingdirectory)'
contents: 'zpa-toolkit/target/zpa-toolkit*.jar'
targetFolder: '$(build.artifactstagingdirectory)/toolkit'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Publish artifact: sonar-plsql-open-plugin'
inputs:
artifactName: 'sonar-plsql-open-plugin'
pathtoPublish: '$(build.artifactstagingdirectory)/plugin'
- task: PublishBuildArtifacts@1
displayName: 'Publish artifact: sonar-plsql-open-plugin'
inputs:
artifactName: 'zpa-toolkit'
pathtoPublish: '$(build.artifactstagingdirectory)/toolkit'
- task: PublishCodeCoverageResults@1
inputs:
summaryFileLocation: '$(System.DefaultWorkingDirectory)/report-aggregate/target/site/jacoco-aggregate/jacoco.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/report-aggregate/target/site/jacoco-aggregate'