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

Fix PowerShellV2 logs output #19353

Merged
merged 2 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tasks/PowerShellV2/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ try {
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {

try {
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
}
catch {
$message = $_.Exception.Message
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PowerShellV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 6
"Minor": 232,
"Patch": 0
},
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
"minimumAgentVersion": "2.115.0",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PowerShellV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 6
"Minor": 232,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.115.0",
Expand Down
4 changes: 2 additions & 2 deletions _generated/PowerShellV2.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|2.231.6
Node20-225|2.231.7
Default|2.232.0
Node20-225|2.232.1
2 changes: 1 addition & 1 deletion _generated/PowerShellV2/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ try {
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {

try {
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
}
catch {
$message = $_.Exception.Message
Expand Down
8 changes: 4 additions & 4 deletions _generated/PowerShellV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 6
"Minor": 232,
"Patch": 0
},
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
"minimumAgentVersion": "2.115.0",
Expand Down Expand Up @@ -259,7 +259,7 @@
"ScriptArgsSanitized": "Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backtick (`). More information is available here: https://aka.ms/ado/75787"
},
"_buildConfigMapping": {
"Default": "2.231.6",
"Node20-225": "2.231.7"
"Default": "2.232.0",
"Node20-225": "2.232.1"
}
}
8 changes: 4 additions & 4 deletions _generated/PowerShellV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 6
"Minor": 232,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.115.0",
Expand Down Expand Up @@ -259,7 +259,7 @@
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
},
"_buildConfigMapping": {
"Default": "2.231.6",
"Node20-225": "2.231.7"
"Default": "2.232.0",
"Node20-225": "2.232.1"
}
}
2 changes: 1 addition & 1 deletion _generated/PowerShellV2_Node20/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ try {
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {

try {
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
}
catch {
$message = $_.Exception.Message
Expand Down
8 changes: 4 additions & 4 deletions _generated/PowerShellV2_Node20/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 7
"Minor": 232,
"Patch": 1
},
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
"minimumAgentVersion": "2.115.0",
Expand Down Expand Up @@ -263,7 +263,7 @@
"ScriptArgsSanitized": "Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backtick (`). More information is available here: https://aka.ms/ado/75787"
},
"_buildConfigMapping": {
"Default": "2.231.6",
"Node20-225": "2.231.7"
"Default": "2.232.0",
"Node20-225": "2.232.1"
}
}
8 changes: 4 additions & 4 deletions _generated/PowerShellV2_Node20/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 231,
"Patch": 7
"Minor": 232,
"Patch": 1
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"minimumAgentVersion": "2.115.0",
Expand Down Expand Up @@ -263,7 +263,7 @@
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
},
"_buildConfigMapping": {
"Default": "2.231.6",
"Node20-225": "2.231.7"
"Default": "2.232.0",
"Node20-225": "2.232.1"
}
}