-
Notifications
You must be signed in to change notification settings - Fork 153
/
vsts-ci.yml
60 lines (54 loc) · 1.43 KB
/
vsts-ci.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
57
58
59
name: PR-$(System.PullRequest.PullRequestNumber)-$(Date:yyyyMMdd)$(Rev:.rr)
pr:
branches:
include:
- master
- release*
- feature*
paths:
include:
- '*'
exclude:
- .github/*
- .vsts-ci/releasebuild.yml
- .vsts-ci/ltsReleaseStage.yml
- .vsts-ci/previewReleaseStage.yml
- .vsts-ci/stableReleaseStage.yml
- assets/matrix.json
- README.md
resources:
- repo: self
clean: true
variables:
POWERSHELL_TELEMETRY_OPTOUT: 1
stages:
- template: .vsts-ci/stage.yml
parameters:
channel: stable
- template: .vsts-ci/stage.yml
parameters:
channel: preview
- template: .vsts-ci/stage.yml
parameters:
channel: lts
- stage: CheckForDuplicateTags
displayName: Check for duplicate tags
dependsOn: []
jobs:
- job: CheckForDuplicateTags
pool:
vmImage: ubuntu-latest
displayName: Check For Duplicate Tags
steps:
- pwsh: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhss"))"
displayName: Set Build Name for Non-PR
condition: ne(variables['Build.Reason'], 'PullRequest')
- pwsh: |
try {
./build.ps1 -CheckForDuplicateTags -Channel stable, preview, lts
} catch {
Get-Error
throw
}
displayName: Check for Duplicate Tags
condition: succeededOrFailed()