From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.1263.1606270307083890641 for ; Tue, 24 Nov 2020 18:11:47 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: michael.d.kinney@intel.com) IronPort-SDR: +zw57lrdPiD2ZDqe1ta9ayKOG3ufRY8nFipbhq4THKIDSd0kCgd7/jKOrH+tidCUNjYhr40eFR QQzTHxucc96w== X-IronPort-AV: E=McAfee;i="6000,8403,9815"; a="168541803" X-IronPort-AV: E=Sophos;i="5.78,367,1599548400"; d="scan'208";a="168541803" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 18:11:46 -0800 IronPort-SDR: GkqAPskA+w4+k+lPIjKLkqts8AoyCozOBQG8AhCeHTBa+ytqbOzfb3VsvAjwR8O8XB+LiMuE/C 5Mt1eMZ46iZw== X-IronPort-AV: E=Sophos;i="5.78,367,1599548400"; d="scan'208";a="312789740" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.122.89]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 18:11:46 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Liming Gao Subject: [Patch][edk2-stable202011 2/3] .azurepipelines/templates/platform-build-run-steps.yml: Fetch target branch Date: Tue, 24 Nov 2020 18:11:35 -0800 Message-Id: <20201125021137.1835-3-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20201125021137.1835-1-michael.d.kinney@intel.com> References: <20201125021137.1835-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Sean Brogan Update Platform build steps process to fetch target branch Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Sean Brogan Reviewed-by: Michael D Kinney --- .azurepipelines/templates/platform-build-run-steps.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.azurepipelines/templates/platform-build-run-steps.yml b/.azurepipelines/templates/platform-build-run-steps.yml index ebf674bfc7d8..97e7faa26682 100644 --- a/.azurepipelines/templates/platform-build-run-steps.yml +++ b/.azurepipelines/templates/platform-build-run-steps.yml @@ -51,6 +51,12 @@ steps: # Set default - bash: echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}" +# Fetch the target branch so that pr_eval can diff them. +# Seems like azure pipelines/github changed checkout process in nov 2020. +- script: git fetch origin $(System.PullRequest.targetBranch) + displayName: fetch target branch + condition: eq(variables['Build.Reason'], 'PullRequest') + # trim the package list if this is a PR - task: CmdLine@1 displayName: Check if ${{ parameters.build_pkg }} need testing -- 2.29.2.windows.2