Skip to content

Commit

Permalink
[GoToolV0] Added telemetry tracking (#13830)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Safonkin committed Nov 23, 2020
1 parent cb7dde9 commit f596b2a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Tasks/GoToolV0/gotool.ts
Expand Up @@ -3,6 +3,7 @@ import * as tl from 'azure-pipelines-task-lib/task';
import * as os from 'os';
import * as path from 'path';
import * as util from 'util';
import * as telemetry from 'utility-common-v2/telemetry';

let osPlat: string = os.platform();
let osArch: string = os.arch();
Expand All @@ -11,6 +12,7 @@ async function run() {
try {
let version = tl.getInput('version', true).trim();
await getGo(version);
telemetry.emitTelemetry('TaskHub', 'GoToolV0', { version });
}
catch (error) {
tl.setResult(tl.TaskResult.Failed, error);
Expand Down
10 changes: 10 additions & 0 deletions Tasks/GoToolV0/make.json
@@ -0,0 +1,10 @@
{
"common": [
{
"module": "../Common/utility-common-v2",
"type": "node",
"compile": true
}
]
}

3 changes: 2 additions & 1 deletion Tasks/GoToolV0/package.json
Expand Up @@ -23,6 +23,7 @@
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"dependencies": {
"azure-pipelines-tool-lib": "0.12.0",
"azure-pipelines-task-lib": "2.8.0"
"azure-pipelines-task-lib": "2.8.0",
"utility-common-v2": "file:../../_build/Tasks/Common/utility-common-v2-2.0.0.tgz"
}
}
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.json
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 3,
"Patch": 2
"Minor": 179,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.loc.json
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 3,
"Patch": 2
"Minor": 179,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down

0 comments on commit f596b2a

Please sign in to comment.