diff --git a/Tasks/GoToolV0/gotool.ts b/Tasks/GoToolV0/gotool.ts index 5c30a7bbbc16..7e58c161af70 100644 --- a/Tasks/GoToolV0/gotool.ts +++ b/Tasks/GoToolV0/gotool.ts @@ -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(); @@ -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); diff --git a/Tasks/GoToolV0/make.json b/Tasks/GoToolV0/make.json new file mode 100644 index 000000000000..6f0abd1fd4d9 --- /dev/null +++ b/Tasks/GoToolV0/make.json @@ -0,0 +1,10 @@ +{ + "common": [ + { + "module": "../Common/utility-common-v2", + "type": "node", + "compile": true + } + ] +} + \ No newline at end of file diff --git a/Tasks/GoToolV0/package.json b/Tasks/GoToolV0/package.json index 10bfd56ba69c..1ea7b2027f75 100644 --- a/Tasks/GoToolV0/package.json +++ b/Tasks/GoToolV0/package.json @@ -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" } } diff --git a/Tasks/GoToolV0/task.json b/Tasks/GoToolV0/task.json index aa45d3daa723..70245072478c 100644 --- a/Tasks/GoToolV0/task.json +++ b/Tasks/GoToolV0/task.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 3, - "Patch": 2 + "Minor": 179, + "Patch": 0 }, "satisfies": [ "GO" diff --git a/Tasks/GoToolV0/task.loc.json b/Tasks/GoToolV0/task.loc.json index 0839667a2ba3..21e52019dd99 100644 --- a/Tasks/GoToolV0/task.loc.json +++ b/Tasks/GoToolV0/task.loc.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 3, - "Patch": 2 + "Minor": 179, + "Patch": 0 }, "satisfies": [ "GO"