forked from microsoft/azure-spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
68 lines (63 loc) · 1.58 KB
/
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
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
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
branches:
include:
- master
- 2.0.x
- 2.1.x
paths:
exclude:
- README.md
- appveyor.yml
pr:
branches:
include:
- master
- 2.0.x
- 2.1.x
paths:
exclude:
- README.md
- appveyor.yml
pool:
vmImage: 'ubuntu-latest'
variables:
- group: aad-auth
jobs:
- job: CI
timeoutInMinutes: 0
steps:
- task: Maven@3
displayName: Maven Build
timeoutInMinutes: 0
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'clean package verify'
env:
AZURE_TENANT: $(AZURE_TENANT)
AZURE_SUBSCRIPTION: $(AZURE_SUBSCRIPTION)
AZURE_CLIENT_ID: $(AZURE_CLIENT_ID)
AZURE_CLIENT_SECRET: $(AZURE_CLIENT_SECRET)
AAD_CLIENT_ID: $(AAD_CLIENT_ID)
AAD_CLIENT_SECRET: $(AAD_CLIENT_SECRET)
AAD_USER_NAME: $(AAD_USER_NAME)
AAD_USER_PASSWORD: $(AAD_USER_PASSWORD)
- task: Gradle@2
displayName: Gradle Build
inputs:
gradleWrapperFile: 'azure-spring-boot-samples/gradlew'
workingDirectory: 'azure-spring-boot-samples'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: 'build'