From e356456fb5d7b7e4efe08bd26b714312153c93b5 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 26 May 2023 15:04:52 +0200 Subject: [PATCH] added update_psa_clone_customer_repository().w --- news_to_ismas | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/news_to_ismas b/news_to_ismas index 3f943bc..2bbb9ad 100755 --- a/news_to_ismas +++ b/news_to_ismas @@ -2,7 +2,8 @@ source ./log_helpers -if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once +if [ "${news_to_ismas_sourced:-1}" = "1" ]; then # include only once + readonly news_to_ismas_sourced=${BASH_SOURCE[0]} readonly APISM_DB_PORT=7777 readonly UPDATE_ISMAS_PROGRESS="U0010" @@ -69,6 +70,18 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once ########################################################################### ########################################################################### + + update_psa_clone_customer_repository () { + PERCENT=10 + local params=("U0010" # event + $PERCENT # percent + $RC_SUCCESS # resultcode + "clone_customer_repository" # step + "git cloned $CUSTOMER_REPOSITORY_PATH" # step_result + "") # version + news_to_ismas ${params[*]} + return $? + } update_psa_pull_customer_repository () { PERCENT=10 @@ -382,8 +395,8 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once \"CREATED\":\"$(date +%Y-%m-%dT%T)\", \"HASH\":\"$(compute_hash)\" }, - \"TARIFF\": { - $(<$TC_PSA_TC_FILE) + \"TARIFF\" : { + $(<$TC_PSA_TC_FILE) }, \"HARDWARE\" : { \"DEVICES\" : [