-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault-image.yml
63 lines (59 loc) · 1.54 KB
/
default-image.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
63
trigger: none
schedules:
- cron: '0 1 * * *'
displayName: 'Nightly build (UTC)'
always: 'true'
branches:
include:
- main
jobs:
- job: 'azurepipelines'
displayName: 'Azure Pipelines pool'
pool:
name: 'Azure Pipelines'
steps:
- pwsh: |
Write-Output $PSVersionTable | Select-Object -Property OS, Platform | Format-List
if ($IsLinux) {
lsb_release -d
}
if ($IsWindows) {
Get-ComputerInfo | Select-Object -ExpandProperty WindowsProductName
}
- job: 'Hosted'
displayName: 'Hosted pool'
pool:
name: 'Hosted'
steps:
- pwsh: |
Write-Output $PSVersionTable | Select-Object -Property OS, Platform | Format-List
if ($IsLinux) {
lsb_release -d
}
if ($IsWindows) {
Get-ComputerInfo | Select-Object -ExpandProperty WindowsProductName
}
- job: 'DefaultHosted'
displayName: 'DefaultHosted image'
pool:
vmImage: 'DefaultHosted'
steps:
- pwsh: |
Write-Output $PSVersionTable | Select-Object -Property OS, Platform | Format-List
if ($IsLinux) {
lsb_release -d
}
if ($IsWindows) {
Get-ComputerInfo | Select-Object -ExpandProperty WindowsProductName
}
# - job: 'nopool'
# displayName: 'No pool or image specified'
# steps:
# - pwsh: |
# Write-Output $PSVersionTable | Select-Object -Property OS, Platform | Format-List
# if ($IsLinux) {
# lsb_release -d
# }
# if ($IsWindows) {
# Get-ComputerInfo | Select-Object -ExpandProperty WindowsProductName
# }