From 75eed7b52ef9a2a5a4408a534f0deda910cefe8c Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Tue, 27 Jul 2021 11:56:14 +0200 Subject: [PATCH] pkgdep/git: Lookup REFSPDK_TAG to build refspdk against a custom tag This may be used by CI to determine which version of the SPDK the refspdk should be built against. The default of using the latest tag is not changed. Signed-off-by: Michal Berger Change-Id: Ia114bea163fb291d1a59069d34e62005865b04bc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8942 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Tomasz Zawadzki Reviewed-by: Ben Walker --- test/common/config/pkgdep/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index 0fea70e68..aeec9b2c8 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -24,7 +24,7 @@ function install_refspdk() { git -C "$GIT_REPOS/spdk_repo/spdk" fetch --tags --force if [[ "$version" == "latest" ]]; then - release=$(git -C "$GIT_REPOS/spdk_repo/spdk" tag | sort --version-sort | grep -v rc | tail -n 1) + release=${REFSPDK_TAG:-$(git -C "$GIT_REPOS/spdk_repo/spdk" tag | sort --version-sort | grep -v rc | tail -n 1)} output_dir="$GIT_REPOS/spdk_abi_latest" elif [[ "$version" == "LTS" ]]; then release=$(git -C "$GIT_REPOS/spdk_repo/spdk" describe --tags --exclude=LTS LTS)