From 853506e371387be885ac75fdd6d90cdc901fb9c0 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Fri, 22 Nov 2019 14:01:23 +0200 Subject: [PATCH] disable telemetry for dotnet --- src/azure/main.ts | 1 + src/github/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/azure/main.ts b/src/azure/main.ts index 2f37517..5b2cf91 100644 --- a/src/azure/main.ts +++ b/src/azure/main.ts @@ -13,6 +13,7 @@ export async function run() { const version = "5.1.2"; const includePrerelease = false; + buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1"); await gitVersionTool.install(version, includePrerelease); buildAgent.setSucceeded("GitVersion executed successfully", true); diff --git a/src/github/main.ts b/src/github/main.ts index 2f37517..5b2cf91 100644 --- a/src/github/main.ts +++ b/src/github/main.ts @@ -13,6 +13,7 @@ export async function run() { const version = "5.1.2"; const includePrerelease = false; + buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1"); await gitVersionTool.install(version, includePrerelease); buildAgent.setSucceeded("GitVersion executed successfully", true);