Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DeployScript and DeployReport Task Options Not Used #34

Open
ksullivan1856 opened this issue Feb 18, 2021 · 0 comments
Open

[BUG] DeployScript and DeployReport Task Options Not Used #34

ksullivan1856 opened this issue Feb 18, 2021 · 0 comments

Comments

@ksullivan1856
Copy link

Component

  • PublishDacPac
  • DeployDatabase

Describe the bug
When using the DeployScriptPath and/or DeployReportPath task options, they are not honored during task execution.
See this line in the PublishDacPacTask:

Variable: $DeployScriptPath or $DeployReportPath is never assigned at the beginning of the task where all the task inputs are collected, starting at:

[string]$DacPacPath = Get-VstsInput -Name "DacPacPath" -Require;

To Reproduce
Run PublishDacPacTask with DeployScriptPath and DeployReportPath populated (not empty). The result will be an actual publish action to the target database rather than creating a deployment script.

Expected behavior
When DeployScriptPath is not an empty string, a publish script should be created, the database should NOT be updated.

Screenshots

image

image

Azure DevOps Agent
Self-Hosted Agent: Version 2.144.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant