From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com []) by mx.groups.io with SMTP id smtpd.web08.2757.1606280890402594249 for ; Tue, 24 Nov 2020 21:08:10 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: michael.d.kinney@intel.com) IronPort-SDR: E8qiCvXxMgeJ4B/mauR8/wTDP3JdYUwV9X1VX3FYJwLO/5vxBPxOMmXG3+vneIx6svshEihkz3 Xfs92MdqofuA== X-IronPort-AV: E=McAfee;i="6000,8403,9815"; a="151325316" X-IronPort-AV: E=Sophos;i="5.78,368,1599548400"; d="scan'208";a="151325316" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 21:08:09 -0800 IronPort-SDR: tHcKrg5s11CDng7y7pPvUrFRoVotgyXj7L/Bg26hdJWEHhQfGNy27kEFcc18aq2j2AgqfvZ78L LTWOgWqjOAQA== X-IronPort-AV: E=Sophos;i="5.78,368,1599548400"; d="scan'208";a="332842098" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.122.89]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 21:08:05 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Liming Gao Subject: [Patch v2][edk2-stable202011 2/4] .azurepipelines/templates/platform-build-run-steps.yml: Fetch target branch Date: Tue, 24 Nov 2020 21:07:56 -0800 Message-Id: <20201125050758.1507-3-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20201125050758.1507-1-michael.d.kinney@intel.com> References: <20201125050758.1507-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