From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com []) by mx.groups.io with SMTP id smtpd.web08.1262.1606270306734568062 for ; Tue, 24 Nov 2020 18:11:47 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: michael.d.kinney@intel.com) IronPort-SDR: x0Rp46pccX3PPenLQVpKBqYpoMQaJCKQ3/aKjkDeuSdVp/qRYq7kSR+N2wXHFusR4os3uFkBdr RQ7V1Bk+N/xw== X-IronPort-AV: E=McAfee;i="6000,8403,9815"; a="168541801" X-IronPort-AV: E=Sophos;i="5.78,367,1599548400"; d="scan'208";a="168541801" 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: XcB0uDO/ShaXsy4QONdDzDxKfOiPm0o/JTSargbBDbYgdIF/R7v3XAjT1ZDcPxYBvIRsmJW+qX EY511dZTxhwg== X-IronPort-AV: E=Sophos;i="5.78,367,1599548400"; d="scan'208";a="312789739" 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:45 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Liming Gao Subject: [Patch][edk2-stable202011 1/3] .azurepipelines/templates/pr-gate-steps.yml: Fetch target branch Date: Tue, 24 Nov 2020 18:11:34 -0800 Message-Id: <20201125021137.1835-2-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 Add step to fetch target branch so that PR_EVAL can resolve diff Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Sean Brogan Reviewed-by: Michael D Kinney --- .azurepipelines/templates/pr-gate-steps.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml index c1c0c04d6c17..70c19a462194 100644 --- a/.azurepipelines/templates/pr-gate-steps.yml +++ b/.azurepipelines/templates/pr-gate-steps.yml @@ -31,6 +31,12 @@ steps: echo "##vso[task.setvariable variable=pkgs_to_build]${{ parameters.build_pkgs }}" 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_pkgs }} need testing -- 2.29.2.windows.2