-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
42 lines (40 loc) · 1021 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
39
40
41
42
pool:
vmImage: 'Ubuntu 16.04'
trigger:
branches:
include:
- master
- development
- feature/*
- bug/*
pr:
branches:
include:
- master
steps:
- checkout: self
persistCredentials: true
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
goals: 'clean package'
condition: ne(variables['Build.SourceBranch'], 'refs/heads/master')
displayName: 'Compile, Test & Package the artifact'
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
goals: 'clean deploy'
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
displayName: 'Compile, Test, Package & Deploy the artifact'