From 095820cb4bc1d5c71a21c1044506ef29d8b634bd Mon Sep 17 00:00:00 2001 From: yulongcai Date: Mon, 29 Apr 2024 11:08:37 +0800 Subject: [PATCH] ADM-926-fix:[frontend] fix: add mapping in generate config file --- frontend/scripts/generate-config-files.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/scripts/generate-config-files.sh b/frontend/scripts/generate-config-files.sh index 9469cbfcfa..f81c237cb5 100755 --- a/frontend/scripts/generate-config-files.sh +++ b/frontend/scripts/generate-config-files.sh @@ -44,3 +44,11 @@ sed -i -e "s//${E2E_TOKEN_JIRA/%????/1234}/g" "${import_file_nam sed -i -e "s//${E2E_TOKEN_BUILD_KITE/%????/1234}/g" "${import_file_name}" sed -i -e "s//${E2E_TOKEN_GITHUB/%????/1234}/g" "${import_file_name}" echo "Successfully generate ${import_file_name}" + +import_file_name='./e2e/fixtures/input-files/charting-unhappy-path-config-file.json' +echo "Start to generate ${import_file_name}" +cat ./e2e/fixtures/input-files/charting-unhappy-path-config-file.template.json > "${import_file_name}" +sed -i -e "s//${E2E_TOKEN_JIRA}/g" "${import_file_name}" +sed -i -e "s//${E2E_TOKEN_BUILD_KITE}/g" "${import_file_name}" +sed -i -e "s//${E2E_TOKEN_GITHUB}/g" "${import_file_name}" +echo "Successfully generate ${import_file_name}"