Step 10 - Copy files to Database folder - Build
  • 18 Nov 2019
  • 1 Minute to read
  • Contributors
  • Comment
  • Dark
    Light
  • PDF

Step 10 - Copy files to Database folder - Build

  • Comment
  • Dark
    Light
  • PDF

Article Summary

In this task we will copy the files produced when we build the solution in relation to the database. This will copy the dacpac file to the artifact staging directory so we can deploy it across environments.

The picture of the configuration of this task is below:

image.png

YAML

The yaml for this task is below:

variables:
  BuildConfiguration: 'Release'

steps:
- task: CopyFiles@2
  displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)\Database'
  inputs:
    SourceFolder: '$(System.DefaultWorkingDirectory)\DB\bin\$(BuildConfiguration)'
    Contents: '*.dacpac'
    TargetFolder: '$(Build.ArtifactStagingDirectory)\Database'


Was this article helpful?