From 4f233cace086766e30627c3b87c0e4741a400c33 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Thu, 19 Dec 2024 20:19:52 +1000 Subject: [PATCH] add workflow to verify artifacts Signed-off-by: Joshua Fernandes --- .github/workflows/draft-release.yml | 20 +++ .github/workflows/verify_artifacts.py | 234 ++++++++++++++++++++++++++ 2 files changed, 254 insertions(+) create mode 100644 .github/workflows/verify_artifacts.py diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 8dc61bec461..b073454d045 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -396,3 +396,23 @@ jobs: ARTIFACTORY_USER: ${{ secrets.BESU_ARTIFACTORY_USER }} ARTIFACTORY_KEY: ${{ secrets.BESU_ARTIFACTORY_TOKEN }} run: ./gradlew -Prelease.releaseVersion=${{ env.RELEASE_VERSION }} -Pversion=${{env.RELEASE_VERSION}} artifactoryPublish + + verify_artifactory: + runs-on: ubuntu-22.04 + needs: [artifactory, validate, test-linux, test-windows] + steps: + - name: checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + with: + ref: ${{ env.RELEASE_VERSION }} + + # actions/setup-python@5.3 + - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b + with: + python-version: '3.13' + + - name: Install dependencies + run: pip install requests argparse + + - name: Run the script + run: python3 .github/workflows/verify_artifacts.py --besu_version="${{ needs.validate.outputs.release_version }}" diff --git a/.github/workflows/verify_artifacts.py b/.github/workflows/verify_artifacts.py new file mode 100644 index 00000000000..5339f965d6b --- /dev/null +++ b/.github/workflows/verify_artifacts.py @@ -0,0 +1,234 @@ +import requests +import argparse + +artifacts = [ + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/besu-datatypes/VERSION/besu-datatypes-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/besu/VERSION/besu-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/config/VERSION/config-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/besu-datatypes/VERSION/besu-datatypes-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/config/VERSION/config-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/besu/VERSION/besu-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/besu-datatypes/VERSION/besu-datatypes-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/besu/VERSION/besu-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/config/VERSION/config-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/besu-datatypes/VERSION/besu-datatypes-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/besu-datatypes/VERSION/besu-datatypes-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/besu/VERSION/besu-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/config/VERSION/config-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/enclave/VERSION/enclave-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/config/VERSION/config-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/besu/VERSION/besu-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/evm/VERSION/evm-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/nat/VERSION/nat-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/enclave/VERSION/enclave-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/enclave/VERSION/enclave-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/nat/VERSION/nat-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/evm/VERSION/evm-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/enclave/VERSION/enclave-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/nat/VERSION/nat-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/enclave/VERSION/enclave-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/evm/VERSION/evm-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/nat/VERSION/nat-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/bom/VERSION/bom-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/evm/VERSION/evm-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/nat/VERSION/nat-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/plugin-api/VERSION/plugin-api-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/evm/VERSION/evm-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/platform/VERSION/platform-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/privacy-contracts/VERSION/privacy-contracts-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/bom/VERSION/bom-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testfuzz/VERSION/testfuzz-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/plugin-api/VERSION/plugin-api-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/privacy-contracts/VERSION/privacy-contracts-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/plugin-api/VERSION/plugin-api-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/privacy-contracts/VERSION/privacy-contracts-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testfuzz/VERSION/testfuzz-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/plugin-api/VERSION/plugin-api-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/privacy-contracts/VERSION/privacy-contracts-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testfuzz/VERSION/testfuzz-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/plugin-api/VERSION/plugin-api-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/privacy-contracts/VERSION/privacy-contracts-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testutil/VERSION/testutil-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testfuzz/VERSION/testfuzz-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/util/VERSION/util-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testfuzz/VERSION/testfuzz-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/dsl/VERSION/dsl-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testutil/VERSION/testutil-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/util/VERSION/util-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/util/VERSION/util-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testutil/VERSION/testutil-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/dsl/VERSION/dsl-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/util/VERSION/util-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/dsl/VERSION/dsl-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/util/VERSION/util-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testutil/VERSION/testutil-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/test-plugins/VERSION/test-plugins-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/testutil/VERSION/testutil-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/dsl/VERSION/dsl-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/clique/VERSION/clique-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/dsl/VERSION/dsl-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/test-plugins/VERSION/test-plugins-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/test-plugins/VERSION/test-plugins-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/clique/VERSION/clique-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/test-plugins/VERSION/test-plugins-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/clique/VERSION/clique-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/test-plugins/VERSION/test-plugins-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/clique/VERSION/clique-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ibft/VERSION/ibft-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/clique/VERSION/clique-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/merge/VERSION/merge-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ibft/VERSION/ibft-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/common/VERSION/common-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ibft/VERSION/ibft-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/merge/VERSION/merge-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/qbft/VERSION/qbft-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ibft/VERSION/ibft-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/merge/VERSION/merge-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ibft/VERSION/ibft-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/merge/VERSION/merge-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/algorithms/VERSION/algorithms-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/qbft/VERSION/qbft-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/merge/VERSION/merge-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/qbft/VERSION/qbft-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/qbft/VERSION/qbft-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/algorithms/VERSION/algorithms-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/qbft/VERSION/qbft-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/algorithms/VERSION/algorithms-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/algorithms/VERSION/algorithms-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/algorithms/VERSION/algorithms-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/blockcreation/VERSION/blockcreation-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/services/VERSION/services-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/blockcreation/VERSION/blockcreation-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/blockcreation/VERSION/blockcreation-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/blockcreation/VERSION/blockcreation-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/blockcreation/VERSION/blockcreation-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/api/VERSION/api-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ethstats/VERSION/ethstats-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ethstats/VERSION/ethstats-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/core/VERSION/core-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ethstats/VERSION/ethstats-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/evmtool/VERSION/evmtool-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ethstats/VERSION/ethstats-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/ethstats/VERSION/ethstats-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/evmtool/VERSION/evmtool-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/mock-p2p/VERSION/mock-p2p-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/eth/VERSION/eth-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/evmtool/VERSION/evmtool-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/p2p/VERSION/p2p-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/evmtool/VERSION/evmtool-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/mock-p2p/VERSION/mock-p2p-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/evmtool/VERSION/evmtool-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/mock-p2p/VERSION/mock-p2p-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/permissioning/VERSION/permissioning-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/mock-p2p/VERSION/mock-p2p-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/p2p/VERSION/p2p-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/mock-p2p/VERSION/mock-p2p-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/p2p/VERSION/p2p-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/referencetests/VERSION/referencetests-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/permissioning/VERSION/permissioning-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/p2p/VERSION/p2p-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/permissioning/VERSION/permissioning-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/p2p/VERSION/p2p-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/referencetests/VERSION/referencetests-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/permissioning/VERSION/permissioning-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/referencetests/VERSION/referencetests-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/permissioning/VERSION/permissioning-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/stratum/VERSION/stratum-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/referencetests/VERSION/referencetests-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/referencetests/VERSION/referencetests-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/trie/VERSION/trie-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/stratum/VERSION/stratum-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/stratum/VERSION/stratum-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/trie/VERSION/trie-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/stratum/VERSION/stratum-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/rlp/VERSION/rlp-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/stratum/VERSION/stratum-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/trie/VERSION/trie-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/verkletrie/VERSION/verkletrie-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/trie/VERSION/trie-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/trie/VERSION/trie-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/verkletrie/VERSION/verkletrie-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-rocksdb/VERSION/metrics-rocksdb-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/verkletrie/VERSION/verkletrie-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/verkletrie/VERSION/verkletrie-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION-test-support.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-rocksdb/VERSION/metrics-rocksdb-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/verkletrie/VERSION/verkletrie-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-rocksdb/VERSION/metrics-rocksdb-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/plugins-rocksdb/VERSION/plugins-rocksdb-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-rocksdb/VERSION/metrics-rocksdb-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-core/VERSION/metrics-core-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/metrics-rocksdb/VERSION/metrics-rocksdb-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/kvstore/VERSION/kvstore-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/pipeline/VERSION/pipeline-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/plugins-rocksdb/VERSION/plugins-rocksdb-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/plugins-rocksdb/VERSION/plugins-rocksdb-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/pipeline/VERSION/pipeline-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/plugins-rocksdb/VERSION/plugins-rocksdb-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/kvstore/VERSION/kvstore-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/plugins-rocksdb/VERSION/plugins-rocksdb-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/pipeline/VERSION/pipeline-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/kvstore/VERSION/kvstore-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/tasks/VERSION/tasks-VERSION-javadoc.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/pipeline/VERSION/pipeline-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/kvstore/VERSION/kvstore-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/pipeline/VERSION/pipeline-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/kvstore/VERSION/kvstore-VERSION.pom", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/tasks/VERSION/tasks-VERSION-sources.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/tasks/VERSION/tasks-VERSION.jar", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/tasks/VERSION/tasks-VERSION.module", + "https://hyperledger.jfrog.io/hyperledger/besu-maven/org/hyperledger/besu/internal/tasks/VERSION/tasks-VERSION.pom" +] + +def check_url(url): + print(f"Checking artifact at: {url}") + r = requests.head(url) + if (r.status_code != 200): + raise Exception(f"Sorry, No artifact found at '{url}' !!!") + +def main(): + parser = argparse.ArgumentParser(description='Check besu artifacts') + parser.add_argument('--besu_version', action="store", dest='besu_version', default="") + args = parser.parse_args() + print(args.besu_version) + + for url in artifacts: + check_url(url.replace('VERSION', args.besu_version)) + + +if __name__ == "__main__": + main() \ No newline at end of file