From 719fdbc2a97d4b5c0dba0f37d8971aa131b0fbf7 Mon Sep 17 00:00:00 2001 From: Tushar Shah Date: Wed, 15 Nov 2023 09:22:18 -0700 Subject: [PATCH] pipelines pt2 --- .circleci/config.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2cd34718..fe1ab20a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,11 +33,11 @@ jobs: name: Check Sepolia RPC Endpoints command: | TIME_DIFF_THRESHOLD="<< parameters.time_diff_threshold >>" - if ops/verify_geth_endpoint.sh "<< parameters.l1_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD && \ - ops/verify_geth_endpoint.sh "<< parameters.l2_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD; then + if ops/verify_geth_endpoint.sh "<< pipeline.parameters.l1_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD && \ + ops/verify_geth_endpoint.sh "<< pipeline.parameters.l2_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD; then echo "Both RPC endpoints are up to date and not syncing." - echo "<< parameters.l1_sepolia_rpc_url >>" > /tmp/l1_sepolia_rpc_url - echo "<< parameters.l2_sepolia_rpc_url >>" > /tmp/l2_sepolia_rpc_url + echo "<< pipeline.parameters.l1_sepolia_rpc_url >>" > /tmp/l1_sepolia_rpc_url + echo "<< pipeline.parameters.l2_sepolia_rpc_url >>" > /tmp/l2_sepolia_rpc_url else echo "One or both of the RPC endpoints failed the checks." exit 1 @@ -56,11 +56,11 @@ jobs: name: Check Goerli RPC Endpoints command: | TIME_DIFF_THRESHOLD="<< parameters.time_diff_threshold >>" - if ops/verify_geth_endpoint.sh "<< parameters.l1_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD && \ - ops/verify_geth_endpoint.sh "<< parameters.l2_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD; then + if ops/verify_geth_endpoint.sh "<< pipeline.parameters.l1_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD && \ + ops/verify_geth_endpoint.sh "<< pipeline.parameters.l2_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD; then echo "Both RPC endpoints are up to date and not syncing." - echo "<< parameters.l1_goerli_rpc_url >>" > /tmp/l1_goerli_rpc_url - echo "<< parameters.l2_goerli_rpc_url >>" > /tmp/l2_goerli_rpc_url + echo "<< pipeline.parameters.l1_goerli_rpc_url >>" > /tmp/l1_goerli_rpc_url + echo "<< pipeline.parameters.l2_goerli_rpc_url >>" > /tmp/l2_goerli_rpc_url else echo "One or both of the RPC endpoints failed the checks." exit 1