-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
54 lines (47 loc) · 1.22 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
54 lines (47 loc) · 1.22 KB
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
trigger:
branches:
include:
- develop
- release
- master
pr:
branches:
include:
- develop
- master
paths:
exclude:
- docs
drafts: false
stages:
- stage: serverBuild
displayName: "Server Build"
dependsOn: []
pool:
name: Breakpoint
demands:
- yarn
- msbuild
- visualstudio
jobs:
- job: DevOpsBuild
displayName: "DevOps Build"
steps:
- checkout: self
persistCredentials: true
fetchDepth: 0
- task: gittools.gitversion.gitversion-task.GitVersion@4
displayName: Generate version number using GitVersion
inputs:
updateAssemblyInfo: false
- task: UpdateBuildNumber@0
displayName: Update Build Number
inputs:
buildNumber: DevOpsGitVersionTests $(Build.BuildNumber)
- task: ATP.ATP-GitTag.GitTag.GitTag@5
displayName: Create version tag in git for master builds
inputs:
tag: $(GitVersion.SemVer)
forceTagCreation: true
useLightweightTags: true
condition: eq(variables['Build.SourceBranchName'], 'master')