From 275df1ed5b045989468891f25d918e679d0e8c50 Mon Sep 17 00:00:00 2001 From: Andrej Podhradsky Date: Thu, 9 May 2024 16:45:50 +0200 Subject: [PATCH] Include Git mirror details into test-variables.yaml Signed-off-by: Andrej Podhradsky --- ods_ci/utils/scripts/testconfig/generateTestConfigFile.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ods_ci/utils/scripts/testconfig/generateTestConfigFile.py b/ods_ci/utils/scripts/testconfig/generateTestConfigFile.py index 2d7538cf7..ff74dd7e3 100644 --- a/ods_ci/utils/scripts/testconfig/generateTestConfigFile.py +++ b/ods_ci/utils/scripts/testconfig/generateTestConfigFile.py @@ -233,6 +233,14 @@ def generate_test_config_file( if config_data.get("PIP_CA_BUNDLE"): data["PIP_CA_BUNDLE"] = config_data["PIP_CA_BUNDLE"] + # Git mirror details (optional) + if config_data.get("GIT_HTTP_URL"): + data["GIT_HTTP_URL"] = config_data["GIT_HTTP_URL"] + if config_data.get("GIT_HTTPS_URL"): + data["GIT_HTTPS_URL"] = config_data["GIT_HTTPS_URL"] + if config_data.get("GIT_HTTPS_CA_BUNDLE"): + data["GIT_HTTPS_CA_BUNDLE"] = config_data["GIT_HTTPS_CA_BUNDLE"] + if components: print("Setting components") print(components)