Skip to content

Commit

Permalink
Fix sql script on linux build agents (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
WimVergouwe authored Feb 26, 2024
1 parent fcdccde commit 9ce3f65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azure/pipelines/deploy/sql-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ steps:
inputs:
targetType: inline
script: |
# Invoke-Sqlcmd is typically available on hosted build agent.
# Install-Module -Name SqlServer -AllowPrerelease -Force -Verbose -Scope CurrentUser
# Invoke-Sqlcmd is typically available on Windows hosted build agent, but not on Linux.
If (-Not (Get-Module SqlServer -ListAvailable)) {
Install-Module -Name SqlServer -AllowPrerelease -Force -Verbose -Scope CurrentUser
}
$scriptPath = Split-Path -Path "${{ parameters.script }}"
Set-Location $scriptPath
Expand Down

0 comments on commit 9ce3f65

Please sign in to comment.