added update_psa_clone_customer_repository().w

This commit is contained in:
Gerhard Hoffmann 2023-05-26 15:04:52 +02:00
parent bcc96a388f
commit e356456fb5

View File

@ -2,7 +2,8 @@
source ./log_helpers 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 APISM_DB_PORT=7777
readonly UPDATE_ISMAS_PROGRESS="U0010" 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 () { update_psa_pull_customer_repository () {
PERCENT=10 PERCENT=10
@ -382,8 +395,8 @@ if [ ${news_to_ismas_sourced:-1} = "1" ]; then # include only once
\"CREATED\":\"$(date +%Y-%m-%dT%T)\", \"CREATED\":\"$(date +%Y-%m-%dT%T)\",
\"HASH\":\"$(compute_hash)\" \"HASH\":\"$(compute_hash)\"
}, },
\"TARIFF\": { \"TARIFF\" : {
$(<$TC_PSA_TC_FILE) $(<$TC_PSA_TC_FILE)
}, },
\"HARDWARE\" : { \"HARDWARE\" : {
\"DEVICES\" : [ \"DEVICES\" : [