-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-build.yaml
30 lines (26 loc) · 950 Bytes
/
azure-build.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
pool:
vmImage: 'ubuntu-16.04'
steps:
## Maven steps documentation - https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/maven?view=azure-devops
- task: Maven@3
displayName: 'Verify build (Maven)'
inputs:
goals: verify
jdkVersionOption: '1.8'
testResultsFiles: '**/TEST-*.xml'
- task: CopyFiles@2
displayName: 'Copy jar to staging directory.'
inputs:
sourceFolder: '$(Build.SourcesDirectory)/target'
contents: '*.jar'
targetFolder: '$(Build.ArtifactStagingDirectory)/target/'
- task: CopyFiles@2
displayName: 'Copy AWS Infra to staging directory.'
inputs:
sourceFolder: '$(Build.SourcesDirectory)/cicd/aws'
contents: '**'
targetFolder: '$(Build.ArtifactStagingDirectory)/aws-infra/'
- publish: '$(Build.ArtifactStagingDirectory)/target/'
artifact: build
- publish: '$(Build.ArtifactStagingDirectory)/aws-infra/'
artifact: aws-infra