forked from Azure-Samples/modern-data-warehouse-dataops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-02-build.yml
43 lines (35 loc) · 1.01 KB
/
azure-pipelines-02-build.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
trigger:
- main
pr: none
pool:
vmImage: 'windows-latest'
variables:
SLN_NAME: 'ddo_samples_azuresql'
SLN_DIR: 'single_tech_samples\azuresql\src\$(SLN_NAME)'
SLN: '$(SLN_DIR)\$(SLN_NAME).sln'
BUILD_PLATFORM: 'any cpu'
BUILD_CONFIGURATION: 'release'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install Nuget'
- task: NuGetCommand@2
displayName: 'Restore Nuget packages'
inputs:
restoreSolution: '$(SLN)'
- task: VSBuild@1
displayName: 'Build solution sln'
inputs:
solution: '$(SLN)'
platform: '$(BUILD_PLATFORM)'
configuration: '$(BUILD_CONFIGURATION)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.ArtifactStagingDirectory)'
inputs:
SourceFolder: '$(system.DefaultWorkingDirectory)'
Contents: '$(SLN_DIR)\**\bin\$(BUILD_CONFIGURATION)\**'
TargetFolder: '$(build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'sql_dacpac'