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

[GoToolV0] Added telemetry tracking #13830

Merged
merged 11 commits into from
Nov 23, 2020
2 changes: 2 additions & 0 deletions Tasks/GoToolV0/gotool.ts
Original file line number Diff line number Diff line change
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/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', 'GoTool', { version });
}
catch (error) {
tl.setResult(tl.TaskResult.Failed, error);
Expand Down
10 changes: 10 additions & 0 deletions Tasks/GoToolV0/make.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"common": [
{
"module": "../Common/utility-common",
"type": "node",
"compile": true
}
]
}

3 changes: 2 additions & 1 deletion Tasks/GoToolV0/package.json
Original file line number Diff line number Diff line change
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": "file:../../_build/Tasks/Common/utility-common-1.0.2.tgz"
}
}
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 3,
"Patch": 2
"Minor": 178,
vsafonkin marked this conversation as resolved.
Show resolved Hide resolved
"Patch": 0
},
"satisfies": [
"GO"
Expand Down
4 changes: 2 additions & 2 deletions Tasks/GoToolV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 3,
"Patch": 2
"Minor": 178,
"Patch": 0
},
"satisfies": [
"GO"
Expand Down