Skip to content

Instantly share code, notes, and snippets.

@jpvelasco
Last active May 8, 2022 08:19
Show Gist options
  • Save jpvelasco/9d73b1069d56ca825f805a8a5eaa14b7 to your computer and use it in GitHub Desktop.
Save jpvelasco/9d73b1069d56ca825f805a8a5eaa14b7 to your computer and use it in GitHub Desktop.
SQL YAML Build Configuration for Azure Pipelines
# Adventure Works SQL Database Project Build Configuration
trigger:
- master
pool:
vmImage: 'VS2017-Win2016'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**\bin\$(BuildConfiguration)\**'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts'
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: 'PublishBuildArtifacts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment