From 3102e72cc80fff29233f80c360b839c1e636b5ee Mon Sep 17 00:00:00 2001 From: anastasia prasolova Date: Tue, 20 Jul 2021 17:22:16 +0300 Subject: [PATCH] [#118] bin: Use non-interactive `docker exec` on testinvokefunction Signed-off-by: anastasia prasolova --- bin/tick.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/tick.sh b/bin/tick.sh index a6f3530..5c258f4 100755 --- a/bin/tick.sh +++ b/bin/tick.sh @@ -6,6 +6,9 @@ # NeoGo binary path. NEOGO="${NEOGO:-docker exec -it main_chain neo-go}" +# Launching neo-go this way is useful, when running the script not from +# terminal, for instance, in jenkins job. +NEOGO_NONINTERACTIVE="${NEOGO_NONINTERACTIVE:-docker exec main_chain neo-go}" # Wallet files to change config value WALLET="${WALLET:-services/chain/node-wallet.json}" @@ -18,7 +21,7 @@ PASSWD="one" ADDR=`cat ${WALLET} | jq -r .accounts[2].address` # Fetch current epoch value -EPOCH=`${NEOGO} contract testinvokefunction -r \ +EPOCH=`${NEOGO_NONINTERACTIVE} contract testinvokefunction -r \ http://morph_chain.${LOCAL_DOMAIN}:30333 \ ${NEOFS_IR_CONTRACTS_NETMAP} \ epoch | grep 'value' | awk -F'"' '{ print $4 }'`