[edk2-devel] 回复: [Patch 1/1] .azurepipelines: Use alternate cmocka repo

gaoliming gaoliming at byosoft.com.cn
Tue Dec 15 04:57:44 UTC 2020


Mike:
  Thanks for your quick fix. It works. Reviewed-by: Liming Gao
<gaoliming at byosoft.com.cn>

  Besides, I think we can directly update submodule link in edk2 repo. If
so, the developers don't need to apply this setting. 

Thanks
Liming
> -----邮件原件-----
> 发件人: Michael D Kinney <michael.d.kinney at intel.com>
> 发送时间: 2020年12月15日 12:47
> 收件人: devel at edk2.groups.io
> 抄送: Sean Brogan <sean.brogan at microsoft.com>; Bret Barkelew
> <Bret.Barkelew at microsoft.com>; Liming Gao <gaoliming at byosoft.com.cn>
> 主题: [Patch 1/1] .azurepipelines: Use alternate cmocka repo
> 
> Use git config insteadOf feature to use an alternate
> cmocka repo from github when running CI.
> 
> Cc: Sean Brogan <sean.brogan at microsoft.com>
> Cc: Bret Barkelew <Bret.Barkelew at microsoft.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Signed-off-by: Michael D Kinney <michael.d.kinney at intel.com>
> ---
>  .azurepipelines/templates/platform-build-run-steps.yml | 3 +++
>  .azurepipelines/templates/pr-gate-steps.yml            | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/.azurepipelines/templates/platform-build-run-steps.yml
> b/.azurepipelines/templates/platform-build-run-steps.yml
> index 97e7faa26682..b712e2fafafb 100644
> --- a/.azurepipelines/templates/platform-build-run-steps.yml
> +++ b/.azurepipelines/templates/platform-build-run-steps.yml
> @@ -51,6 +51,9 @@ steps:
>  # Set default
>  - bash: echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"
> 
> +# Use altername cmocka repo
> +- bash: git config --global
> url.https://github.com/neverware-mirrors/cmocka.git.insteadOf
> https://git.cryptomilk.org/projects/cmocka.git
> +
>  # 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)
> diff --git a/.azurepipelines/templates/pr-gate-steps.yml
> b/.azurepipelines/templates/pr-gate-steps.yml
> index 70c19a462194..28edb453bddc 100644
> --- a/.azurepipelines/templates/pr-gate-steps.yml
> +++ b/.azurepipelines/templates/pr-gate-steps.yml
> @@ -31,6 +31,9 @@ steps:
>      echo "##vso[task.setvariable
> variable=pkgs_to_build]${{ parameters.build_pkgs }}"
>      echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}"
> 
> +# Use altername cmocka repo
> +- bash: git config --global
> url.https://github.com/neverware-mirrors/cmocka.git.insteadOf
> https://git.cryptomilk.org/projects/cmocka.git
> +
>  # 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)
> --
> 2.29.2.windows.2





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#68840): https://edk2.groups.io/g/devel/message/68840
Mute This Topic: https://groups.io/mt/78970204/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list