Skip to content

Commit

Permalink
Fix PowerShellV2 logs output (#19353)
Browse files Browse the repository at this point in the history
* Redirect function output to null

* Bump task to 2.232.0
  • Loading branch information
KonstantinTyukalov authored Dec 7, 2023
1 parent 99b6c67 commit 1da994f
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
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"
}
}

0 comments on commit 1da994f

Please sign in to comment.