-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
executable file
·49 lines (41 loc) · 1.26 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
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
trigger:
batch: true
branches:
include:
- master
- feature/*
pr:
branches:
include:
- master
jobs:
- job: BuildAndRunUnitTests
displayName: Build and run unit tests
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Maven@3
displayName: Build with Maven
inputs:
mavenPomFile: 'pom.xml'
publishJUnitResults: false
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
sonarQubeRunAnalysis: false
sqMavenPluginVersionChoice: 'latest'
- task: CopyFiles@2
displayName: Copy files to artifacts
inputs:
sourceFolder: '$(Build.SourcesDirectory)/target/azure-functions/ami-media-processor-function-app/'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: DeleteFiles@1
displayName: Remove local.settings.json from artifacts
inputs:
sourceFolder: '$(Build.ArtifactStagingDirectory)'
contents: 'local.settings.json'
- task: PublishBuildArtifacts@1
displayName: Publish artifacts
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'