-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
48 lines (40 loc) · 1.22 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
trigger:
- master
- develop
pool:
name: TS-Windows
variables:
ArticleFull: '8866027201'
ProjectID: 'MapStreamer'
Major: '4'
Minor: '0'
workspace:
clean: all
# Build number format
name: $(ArticleFull).$(Major).$(Minor).$(rev:r)
steps:
- checkout: self
lfs: true
clean: true
submodules: recursive
persistCredentials: true
- task: GitBuildInformation@0
displayName: 'Create build information for repository - branch master or PR to master'
condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['System.PullRequest.TargetBranch'], 'refs/heads/master'))
inputs:
outputFile: 'BuildInfo'
branchFilterRegex: '^(origin\/master|origin\/release\/+)'
branchApprovedRegex: '^(origin\/master|origin\/release\/+)'
continueOnError: false
- task: set-version-variables@1
displayName: 'Set version variables according to BuildNumber'
inputs:
setProductVersionVariable: true
setMajorVariable: true
setMinorVariable: true
setBuildVariable: true
setRevisionVariable: true
failOnVersionSyntax: true
defineCustomizedVariable: false
- script: echo Version = $(Build_ProductVersion)
displayName: 'Pipeline for setting component version and change history'