diff options
author | Sean Brogan <sean.brogan@microsoft.com> | 2020-11-24 13:12:30 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-11-25 17:54:11 +0000 |
commit | 3d39107f2df391e5519409801efdb9be8a8e25c3 (patch) | |
tree | b94545e63073af9c0bb9b1022daca79d1bd53358 | |
parent | 391610903b2944bb6bfed76fe9f9b46838600baf (diff) | |
download | edk2-3d39107f2df391e5519409801efdb9be8a8e25c3.tar.gz edk2-3d39107f2df391e5519409801efdb9be8a8e25c3.tar.bz2 edk2-3d39107f2df391e5519409801efdb9be8a8e25c3.zip |
.azurepipelines/templates/platform-build-run-steps.yml: Fetch target branch
Update Platform build steps process to fetch target branch
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r-- | .azurepipelines/templates/platform-build-run-steps.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.azurepipelines/templates/platform-build-run-steps.yml b/.azurepipelines/templates/platform-build-run-steps.yml index ebf674bfc7..97e7faa266 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
|