From 67c547851cb229a290658ca9223d40866dacb919 Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Thu, 26 Sep 2024 12:42:36 +0200 Subject: [PATCH] ci: experiment with manually runnable ci with pre-set branchnames --- .circleci/setupAndTestBackendSDKWithFreeCore.sh | 8 +++++--- .circleci/setupAndTestWithAuthReact.sh | 8 +++++--- .circleci/setupAndTestWithFreeCore.sh | 8 +++++--- .circleci/setupAndTestWithFrontend.sh | 8 +++++--- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/.circleci/setupAndTestBackendSDKWithFreeCore.sh b/.circleci/setupAndTestBackendSDKWithFreeCore.sh index 451f1b73e..f50a53593 100755 --- a/.circleci/setupAndTestBackendSDKWithFreeCore.sh +++ b/.circleci/setupAndTestBackendSDKWithFreeCore.sh @@ -1,7 +1,9 @@ -coreVersionXY=`echo $1 | tr -d '"'` +coreVersionXYParam=`echo $1 | tr -d '"'` +coreVersionXY=$coreVersionXYParam + if [ -f "cdi-core-map.json" ] then - coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'` + coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$coreTag" != "null" ] then coreVersion=$coreTag @@ -25,7 +27,7 @@ fi if [ -f "cdi-plugin-interface-map.json" ] then - pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'` + pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$pluginInterfaceTag" != "null" ] then pluginInterfaceVersionXY=$pluginInterfaceTag diff --git a/.circleci/setupAndTestWithAuthReact.sh b/.circleci/setupAndTestWithAuthReact.sh index 80a7e56c1..5c033191e 100755 --- a/.circleci/setupAndTestWithAuthReact.sh +++ b/.circleci/setupAndTestWithAuthReact.sh @@ -1,7 +1,9 @@ -coreVersionXY=$1 +coreVersionXYParam=`echo $1 | tr -d '"'` +coreVersionXY=$coreVersionXYParam + if [ -f "cdi-core-map.json" ] then - coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'` + coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$coreTag" != "null" ] then coreVersion=$coreTag @@ -25,7 +27,7 @@ fi if [ -f "cdi-plugin-interface-map.json" ] then - pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'` + pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$pluginInterfaceTag" != "null" ] then pluginInterfaceVersionXY=$pluginInterfaceTag diff --git a/.circleci/setupAndTestWithFreeCore.sh b/.circleci/setupAndTestWithFreeCore.sh index ca93b1b53..7f55c3484 100755 --- a/.circleci/setupAndTestWithFreeCore.sh +++ b/.circleci/setupAndTestWithFreeCore.sh @@ -1,7 +1,9 @@ -coreVersionXY=$1 +coreVersionXYParam=`echo $1 | tr -d '"'` +coreVersionXY=$coreVersionXYParam + if [ -f "cdi-core-map.json" ] then - coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'` + coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$coreTag" != "null" ] then coreVersion=$coreTag @@ -25,7 +27,7 @@ fi if [ -f "cdi-plugin-interface-map.json" ] then - pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'` + pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$pluginInterfaceTag" != "null" ] then pluginInterfaceVersionXY=$pluginInterfaceTag diff --git a/.circleci/setupAndTestWithFrontend.sh b/.circleci/setupAndTestWithFrontend.sh index deb37cc4f..3f875e1f7 100755 --- a/.circleci/setupAndTestWithFrontend.sh +++ b/.circleci/setupAndTestWithFrontend.sh @@ -1,7 +1,9 @@ -coreVersionXY=$1 +coreVersionXYParam=`echo $1 | tr -d '"'` +coreVersionXY=$coreVersionXYParam + if [ -f "cdi-core-map.json" ] then - coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'` + coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$coreTag" != "null" ] then coreVersion=$coreTag @@ -25,7 +27,7 @@ fi if [ -f "cdi-plugin-interface-map.json" ] then - pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'` + pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'` if [ "$pluginInterfaceTag" != "null" ] then pluginInterfaceVersionXY=$pluginInterfaceTag