diff options
author | Oliver Steffen <osteffen@redhat.com> | 2023-01-16 18:40:28 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-01-17 19:06:32 +0000 |
commit | 357955173463b0a3c884ef9b5a9e8370e3d46f9a (patch) | |
tree | d69106c5005af8c27be72d50d879a3c84b16f268 /.azurepipelines/Ubuntu-GCC5.yml | |
parent | 015a001b03db14f791476f817b8b125b195b6d10 (diff) | |
download | edk2-357955173463b0a3c884ef9b5a9e8370e3d46f9a.zip edk2-357955173463b0a3c884ef9b5a9e8370e3d46f9a.tar.gz edk2-357955173463b0a3c884ef9b5a9e8370e3d46f9a.tar.bz2 |
CI: make Python version configurable
Add a new parameter "usePythonVersion" to the CI job templates.
This makes it possible to specify the version of Python to use.
The default value is '', in which case Python will not be downloaded
at runtime and the one provided by the VM/container image will be used.
Additionally, add a template .azurepipelines/templates/defaults.yml,
from which the default Pyhton version string can be obtained.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chris Fernald <chfernal@microsoft.com>
Diffstat (limited to '.azurepipelines/Ubuntu-GCC5.yml')
-rw-r--r-- | .azurepipelines/Ubuntu-GCC5.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index f83951e..4f9dcf0 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -13,13 +13,13 @@ pr: - master
- stable/*
+variables:
+ - template: templates/defaults.yml
+
jobs:
- template: templates/pr-gate-build-job.yml
parameters:
tool_chain_tag: 'GCC5'
vm_image: 'ubuntu-latest'
arch_list: "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64"
- extra_install_step:
- - bash: sudo apt-get install -y lcov
- displayName: Install Code Coverage Tools
- condition: and(gt(variables.pkg_count, 0), succeeded())
+ usePythonVersion: ${{ variables.default_python_version }}
|