From 0543b683376e2d3d0eb5414ef10ab5af0347babe Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Mon, 9 Oct 2023 18:53:48 +0200 Subject: [PATCH] Handle ~ symbols in git tags The ~ symbol used in prereleases is not supported by git tags. Needs to convert it to a -. --- jenkins-scripts/docker/gz-source-generation.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins-scripts/docker/gz-source-generation.bash b/jenkins-scripts/docker/gz-source-generation.bash index 41669ed51..5aa9eba8b 100644 --- a/jenkins-scripts/docker/gz-source-generation.bash +++ b/jenkins-scripts/docker/gz-source-generation.bash @@ -18,7 +18,7 @@ BUILD_DIR=\$SOURCES_DIR/build cd \${WORKSPACE} rm -fr \$SOURCES_DIR && mkdir \$SOURCES_DIR -git clone --depth 1 --branch ${PACKAGE}_${VERSION} ${SOURCE_REPO_URI} \${SOURCES_DIR} +git clone --depth 1 --branch ${PACKAGE}_${VERSION:~:-} ${SOURCE_REPO_URI} \${SOURCES_DIR} rm -fr \$BUILD_DIR && mkdir \$BUILD_DIR cd \${BUILD_DIR} cmake .. -DPACKAGE_SOURCE_ONLY:BOOL=ON