Skip to content

Commit 1da994f

Browse files
authored
Fix PowerShellV2 logs output (#19353)
* Redirect function output to null * Bump task to 2.232.0
1 parent 99b6c67 commit 1da994f

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

Tasks/PowerShellV2/powershell.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ try {
9898
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {
9999

100100
try {
101-
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
101+
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
102102
}
103103
catch {
104104
$message = $_.Exception.Message

Tasks/PowerShellV2/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 6
20+
"Minor": 232,
21+
"Patch": 0
2222
},
2323
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
2424
"minimumAgentVersion": "2.115.0",

Tasks/PowerShellV2/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 6
20+
"Minor": 232,
21+
"Patch": 0
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",
2424
"minimumAgentVersion": "2.115.0",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|2.231.6
2-
Node20-225|2.231.7
1+
Default|2.232.0
2+
Node20-225|2.232.1

_generated/PowerShellV2/powershell.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ try {
9898
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {
9999

100100
try {
101-
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
101+
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
102102
}
103103
catch {
104104
$message = $_.Exception.Message

_generated/PowerShellV2/task.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 6
20+
"Minor": 232,
21+
"Patch": 0
2222
},
2323
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
2424
"minimumAgentVersion": "2.115.0",
@@ -259,7 +259,7 @@
259259
"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"
260260
},
261261
"_buildConfigMapping": {
262-
"Default": "2.231.6",
263-
"Node20-225": "2.231.7"
262+
"Default": "2.232.0",
263+
"Node20-225": "2.232.1"
264264
}
265265
}

_generated/PowerShellV2/task.loc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 6
20+
"Minor": 232,
21+
"Patch": 0
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",
2424
"minimumAgentVersion": "2.115.0",
@@ -259,7 +259,7 @@
259259
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
260260
},
261261
"_buildConfigMapping": {
262-
"Default": "2.231.6",
263-
"Node20-225": "2.231.7"
262+
"Default": "2.232.0",
263+
"Node20-225": "2.232.1"
264264
}
265265
}

_generated/PowerShellV2_Node20/powershell.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ try {
9898
if ("$input_targetType".ToUpperInvariant() -eq 'FILEPATH') {
9999

100100
try {
101-
Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
101+
$null = Protect-ScriptArguments -InputArgs $input_arguments -TaskName "PowerShellV2"
102102
}
103103
catch {
104104
$message = $_.Exception.Message

_generated/PowerShellV2_Node20/task.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 7
20+
"Minor": 232,
21+
"Patch": 1
2222
},
2323
"releaseNotes": "Script task consistency. Added support for macOS and Linux.",
2424
"minimumAgentVersion": "2.115.0",
@@ -263,7 +263,7 @@
263263
"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"
264264
},
265265
"_buildConfigMapping": {
266-
"Default": "2.231.6",
267-
"Node20-225": "2.231.7"
266+
"Default": "2.232.0",
267+
"Node20-225": "2.232.1"
268268
}
269269
}

_generated/PowerShellV2_Node20/task.loc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"author": "Microsoft Corporation",
1818
"version": {
1919
"Major": 2,
20-
"Minor": 231,
21-
"Patch": 7
20+
"Minor": 232,
21+
"Patch": 1
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",
2424
"minimumAgentVersion": "2.115.0",
@@ -263,7 +263,7 @@
263263
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
264264
},
265265
"_buildConfigMapping": {
266-
"Default": "2.231.6",
267-
"Node20-225": "2.231.7"
266+
"Default": "2.232.0",
267+
"Node20-225": "2.232.1"
268268
}
269269
}

0 commit comments

Comments
 (0)