-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
62 lines (56 loc) · 1.63 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
50
51
52
53
54
55
56
57
58
59
60
61
62
resources:
repositories:
- repository: basecatlets # The name used to reference this repository in the checkout step
type: github
endpoint: eryph-org
name: eryph-org/basecatlets-hyperv
pool:
name: eryph
jobs:
- job: build
timeoutInMinutes: 240
strategy:
maxParallel: 1
matrix:
ubuntu-22.04:
template: ubuntu-22.04
winsrv2019-standard:
template: winsrv2016-standard
winsrv2022-standard:
template: winsrv2022-standard
winsrv2025-standard:
template: winsrv2025-standard
win10-20h2:
template: win10-20h2-enterprise
win11-21h1:
template: win11-21h1-enterprise
win11-22h2:
template: win11-22h2-enterprise
steps:
- checkout: self
- checkout: basecatlets
clean: true
- task: Pre-PowerShell@2
inputs:
targetType: 'inline'
script: |
$template = $env:template
if($template) {
get-vm $template -ErrorAction Continue | Stop-VM -Force
get-vm $template -ErrorAction Continue | Remove-VM -Force
}
- task: PowerShell@2
displayName: setup tools
inputs:
filePath: '.\eryph-genes\prepare.ps1'
arguments: '$(UserMail) $(InvitationCode)'
warningPreference: 'continue'
informationPreference: 'continue'
verbosePreference: 'continue'
- task: CmdLine@2
inputs:
script: 'mkdir $(Build.SourcesDirectory)\basecatlets-hyperv\builds'
- task: PowerShell@2
inputs:
filePath: '.\eryph-genes\build.ps1'
arguments: '-Filter $(template) -BuildPath $(Build.SourcesDirectory)\basecatlets-hyperv\builds'