Skip to content

Commit 22143f9

Browse files
Exclude remote machine stderr logs from telemetry for Ssh task (#20512)
* Added the 'CustomerScript' issue source for an error handler. * Bumped the task version.
1 parent e606f44 commit 22143f9

File tree

10 files changed

+22
-19
lines changed

10 files changed

+22
-19
lines changed

Tasks/SshV0/ssh2helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { IssueSource } from 'azure-pipelines-task-lib/internal';
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as Q from 'q';
34
import * as ssh2 from 'ssh2';
@@ -35,7 +36,7 @@ function handlePasswordInput(data: string, stream: any, password: string, dataBu
3536
function handleError(data: any): void {
3637
tl.debug('stderr = ' + data);
3738
if (data && data.toString().trim() !== '') {
38-
tl.error(data.toString('utf8'));
39+
tl.error(data.toString('utf8'), IssueSource.CustomerScript);
3940
}
4041
}
4142

Tasks/SshV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 0
21+
"Patch": 2
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",

Tasks/SshV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 0
21+
"Patch": 2
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",

_generated/SshV0.versionmap.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|0.247.0
2-
Node20-225|0.247.1
1+
Default|0.247.2
2+
Node20-225|0.247.3

_generated/SshV0/ssh2helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { IssueSource } from 'azure-pipelines-task-lib/internal';
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as Q from 'q';
34
import * as ssh2 from 'ssh2';
@@ -35,7 +36,7 @@ function handlePasswordInput(data: string, stream: any, password: string, dataBu
3536
function handleError(data: any): void {
3637
tl.debug('stderr = ' + data);
3738
if (data && data.toString().trim() !== '') {
38-
tl.error(data.toString('utf8'));
39+
tl.error(data.toString('utf8'), IssueSource.CustomerScript);
3940
}
4041
}
4142

_generated/SshV0/task.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 0
21+
"Patch": 2
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",
@@ -165,7 +165,7 @@
165165
"ScriptArgsSanitized": "Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backslash (\\). More information is available here: https://aka.ms/ado/75787"
166166
},
167167
"_buildConfigMapping": {
168-
"Default": "0.247.0",
169-
"Node20-225": "0.247.1"
168+
"Default": "0.247.2",
169+
"Node20-225": "0.247.3"
170170
}
171171
}

_generated/SshV0/task.loc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 0
21+
"Patch": 2
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",
@@ -165,7 +165,7 @@
165165
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
166166
},
167167
"_buildConfigMapping": {
168-
"Default": "0.247.0",
169-
"Node20-225": "0.247.1"
168+
"Default": "0.247.2",
169+
"Node20-225": "0.247.3"
170170
}
171171
}

_generated/SshV0_Node20/ssh2helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { IssueSource } from 'azure-pipelines-task-lib/internal';
12
import * as tl from 'azure-pipelines-task-lib/task';
23
import * as Q from 'q';
34
import * as ssh2 from 'ssh2';
@@ -35,7 +36,7 @@ function handlePasswordInput(data: string, stream: any, password: string, dataBu
3536
function handleError(data: any): void {
3637
tl.debug('stderr = ' + data);
3738
if (data && data.toString().trim() !== '') {
38-
tl.error(data.toString('utf8'));
39+
tl.error(data.toString('utf8'), IssueSource.CustomerScript);
3940
}
4041
}
4142

_generated/SshV0_Node20/task.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 1
21+
"Patch": 3
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",
@@ -169,7 +169,7 @@
169169
"ScriptArgsSanitized": "Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backslash (\\). More information is available here: https://aka.ms/ado/75787"
170170
},
171171
"_buildConfigMapping": {
172-
"Default": "0.247.0",
173-
"Node20-225": "0.247.1"
172+
"Default": "0.247.2",
173+
"Node20-225": "0.247.3"
174174
}
175175
}

_generated/SshV0_Node20/task.loc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 0,
2020
"Minor": 247,
21-
"Patch": 1
21+
"Patch": 3
2222
},
2323
"demands": [],
2424
"minimumAgentVersion": "2.206.1",
@@ -169,7 +169,7 @@
169169
"ScriptArgsSanitized": "ms-resource:loc.messages.ScriptArgsSanitized"
170170
},
171171
"_buildConfigMapping": {
172-
"Default": "0.247.0",
173-
"Node20-225": "0.247.1"
172+
"Default": "0.247.2",
173+
"Node20-225": "0.247.3"
174174
}
175175
}

0 commit comments

Comments
 (0)