-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
56 lines (54 loc) · 1.61 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
trigger:
- master
pool:
vmImage: ubuntu-latest
stages:
- stage: Build_Test
jobs:
- job: Maven_Package
steps:
- task: MavenAuthenticate@0
inputs:
artifactsFeeds: 'pminkows'
mavenServiceConnections: 'pminkows'
displayName: 'Maven Authenticate'
- task: Maven@3
inputs:
mavenPomFile: 'microservices/account-service/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'deploy'
mavenAuthenticateFeed: true
displayName: 'Build'
- stage: Deploy_Stage
dependsOn: Build_Test
condition: succeeded()
jobs:
- deployment: Deployment_Staging
environment:
name: staging
strategy:
runOnce:
deploy:
steps:
- task: DownloadPackage@1
inputs:
packageType: 'maven'
feed: 'pminkows'
view: 'Local'
definition: 'pl.piomin:account-service'
version: '1.3'
downloadPath: '$(System.ArtifactsDirectory)'
- script: 'ls -la $(System.ArtifactsDirectory)'
- task: AzureSpringCloud@0
inputs:
azureSubscription: $(subscription)
Action: 'Deploy'
AzureSpringCloud: $(serviceName)
AppName: 'account-service'
DeploymentName: dep1
Package: '$(System.ArtifactsDirectory)/account-service-1.3.jar'