Skip to content

Commit dd5471a

Browse files
committed
Fixing the DeployToSqlServer task for core-clr agent
1 parent 4285644 commit dd5471a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Tasks/SqlServerDacpacDeployment/DeployToSqlServer.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ if( $publishProfile -eq $env:SYSTEM_DEFAULTWORKINGDIRECTORY -or $publishProfile
5050

5151
$sqlDeploymentScriptPath = Join-Path "$env:AGENT_HOMEDIRECTORY" "Agent\Worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.DevTestLabs\Scripts\Microsoft.TeamFoundation.DistributedTask.Task.Deployment.Sql.ps1"
5252

53+
if( -Not (Test-Path -Path $sqlDeploymentScriptPath))
54+
{
55+
$sqlDeploymentScriptPath = Join-Path "$env:AGENT_HOMEDIRECTORY" "externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.DevTestLabs\Scripts\Microsoft.TeamFoundation.DistributedTask.Task.Deployment.Sql.ps1"
56+
}
57+
5358
$sqlPackageOnTargetMachineBlock = Get-Content $sqlDeploymentScriptPath | Out-String
5459

5560
$sqlPackageArguments = Get-SqlPackageCommandArguments -dacpacFile $dacpacFile -targetMethod $targetMethod -serverName $serverName -databaseName $databaseName -sqlUsername $sqlUsername -sqlPassword $sqlPassword -connectionString $connectionString -publishProfile $publishProfile -additionalArguments $additionalArguments

Tasks/SqlServerDacpacDeployment/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 0,
17-
"Patch": 14
17+
"Patch": 15
1818
},
1919
"demands": [
2020
],

Tasks/SqlServerDacpacDeployment/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 0,
17-
"Patch": 14
17+
"Patch": 15
1818
},
1919
"demands": [],
2020
"minimumAgentVersion": "1.96.2",

0 commit comments

Comments
 (0)