|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH test-artifacts v3 07/13] Support building arbitrary Linux branch/tag/commit
On Wed, Apr 01, 2026 at 01:21:57AM +0200, Marek Marczykowski-Górecki wrote:
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 58f7571f5366..62b2a24e7faf 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -49,9 +53,13 @@ alpine-3.22-arm64-rootfs:
>
> linux-6.6.86-arm64:
> extends: .arm64-artifacts
> - script: ./scripts/build-linux.sh
> - variables:
> - LINUX_VERSION: 6.6.86
> + script: ./scripts/build-linux.sh "6.6.86"
Is it crazy to think we could grab the linux version from the job name?
:-D
linux-6.6.86-arm64:
script:
- linux_version="$CI_JOB_NAME"
- linux_version="${linux_version#linux-}"
- linux_version="${linux_version%%-*}"
- ./scripts/build-linux.sh "$linux_version"
That would avoid having a job building a version of linux that is
different than the expected one, which can happen easly when duplicating
an existing job for building a new version of linux.
> diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh
> index cf0e744bd232..882bac2189a6 100755
> --- a/scripts/build-linux.sh
> +++ b/scripts/build-linux.sh
> @@ -1,5 +1,8 @@
> #!/usr/bin/env bash
>
> +LINUX_VERSION="$1"
> +LINUX_GIT_URL="$2"
> +
> if test -z "${LINUX_VERSION}"
With LINUX_VERSION been set just before, this test doesn't make sense
anymore, or the error message is wrong.
> then
> >&2 echo "LINUX_VERSION must be set"; exit 1
Thanks,
--
| Vates
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |