Skip to content

Commit

Permalink
[azure-pipelines-tasks-webdeployment-common] - Fix ms deploy for node…
Browse files Browse the repository at this point in the history
… 16 (#199)

- Fix the "Unrecognized argument" for the msdeploy on Node16. The fix also works fine for node 10
  • Loading branch information
DmitriiBobreshev authored Jul 24, 2023
1 parent 34e6d1a commit b241e92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ async function executeMSDeploy(msDeployCmdArgs) {
for(var i = 0 ; i < msDeployCmdArgs.length ; i++ ) {
tl.debug("arg#" + i + ": " + msDeployCmdArgs[i]);
}
await tl.exec("msdeploy", msDeployCmdArgs, <any>{failOnStdErr: true, errStream: errObj, windowsVerbatimArguments: true});
// for windowsVerbatimArguments: false see https://github.com/microsoft/azure-pipelines-tasks/issues/17634
await tl.exec("msdeploy", msDeployCmdArgs, <any>{failOnStdErr: true, errStream: errObj, windowsVerbatimArguments: false});
deferred.resolve("Azure App service successfully deployed");
} catch (error) {
msDeployError = error;
Expand Down
2 changes: 1 addition & 1 deletion common-npm-packages/webdeployment-common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common-npm-packages/webdeployment-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azure-pipelines-tasks-webdeployment-common",
"version": "4.224.0",
"version": "4.225.0",
"description": "Common Lib for MSDeploy Utility",
"repository": {
"type": "git",
Expand Down

0 comments on commit b241e92

Please sign in to comment.