From ce331fc0068052be9399392391ff99ceda1889db Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Tue, 30 Aug 2022 16:04:28 -0700 Subject: [PATCH] [release/7.0] Set `MSBUILDLOGALLENVIRONMENTVARIABLES` in most CI jobs - should affect most of our pipelines though not a few post-build jobs - as we saw in #43028, binary logs no longer include all environment variables by default - this change captures the environment variables not visibly referenced in our projects etc. - fix avoids a need to add the override later to debug an issue, at the cost of larger .binlog files --- .azure/pipelines/jobs/default-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure/pipelines/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml index 125b09ce792a..64d5952f1e92 100644 --- a/.azure/pipelines/jobs/default-build.yml +++ b/.azure/pipelines/jobs/default-build.yml @@ -155,6 +155,8 @@ jobs: - LC_ALL: 'en_US.UTF-8' - LANG: 'en_US.UTF-8' - LANGUAGE: 'en_US.UTF-8' + # Log environment variables in binary logs to ease debugging + - MSBUILDLOGALLENVIRONMENTVARIABLES: true steps: - ${{ if ne(parameters.agentOs, 'Windows') }}: - script: df -h