-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines Download and Extract SQL Server Setup.yml
More file actions
59 lines (48 loc) · 1.32 KB
/
azure-pipelines Download and Extract SQL Server Setup.yml
File metadata and controls
59 lines (48 loc) · 1.32 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
55
56
57
58
variables:
NUGET_VERSION: 0.1
PS1_TROUBLE_SHOOT: On
PS1_REPO_DOWNLOAD_FOLDER_1: 'C:\SQL-Downloads'
trigger:
branches:
include:
- main
jobs:
- job: Download
pool:
vmImage: '$(IMAGE)'
timeoutInMinutes: 120
strategy:
maxParallel: 4
matrix:
'on 2019':
IMAGE: 'windows-latest'
# 'on 2022':
# IMAGE: 'windows-2022'
steps:
- powershell: |
Write-Host "CPU: $((Get-WmiObject Win32_Processor).Name), $([System.Environment]::ProcessorCount) Cores"
gdr -PSProvider 'FileSystem'
Get-Volume
Get-PhysicalDisk
Get-Partition
displayName: 'Bootstrap'
- powershell: |
cd Scripts
powershell -f "[Test] Download and Extract SQL Server Setup.ps1" *| tee "$($ENV:SYSTEM_ARTIFACTSDIRECTORY)\FULL-LOG.txt"
gdr -PSProvider 'FileSystem'
condition: succeededOrFailed()
displayName: 'Install'
- bash: |
set -eu; set -o pipefail
d=$PWD
pushd "$(System.ARTIFACTSDIRECTORY)"
7z a -mx=1 -ms=on -mqs=on "Source-$(Agent.JobName).7z" "$d"
popd
condition: succeededOrFailed()
displayName: 'Prepare Artifacts'
- task: PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish'
inputs:
pathtoPublish: '$(System.ARTIFACTSDIRECTORY)'
artifactName: '$(Agent.JobName)'