forked from ministero-salute/it-dgc-gateway-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipeline.yml
72 lines (62 loc) · 1.49 KB
/
azure-pipeline.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
name: ministero-salute.it-dgc-gateway-client
trigger:
branches:
include:
- master
- develop
- feature/*
- releases/*
pr:
branches:
include:
- master
- develop
- releases/*
pool:
pool: Azure Pipelines
resources:
containers:
- container: mongo
image: mongo
ports:
- 27017:27017
services:
mongo: mongo
workspace:
clean: all
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
codeCoverageToolOption: 'JaCoCo'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: false
- task: SonarQubePrepare@4
inputs:
SonarQube: 'SonarQube Azure 8.9'
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: '$(System.TeamProject)_it-dgc-gateway-client'
cliProjectName: '$(System.TeamProject)_it-dgc-gateway-client'
cliProjectVersion: '$(Build.SourceBranchName)_$(Build.SourceVersion)'
cliSources: '.'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
# sonar.exclusions=**/*.bin
sonar.java.binaries=.
sonar.exclusions=**/CCReport*/**
- task: SonarQubeAnalyze@4
- task: SonarQubePublish@4
inputs:
pollingTimeoutSec: '300'
- task: Docker@2
inputs:
command: 'build'
Dockerfile: '**/Dockerfile'