From 8cca2e0a9d0c4d4c75fc3cb534f52c51754a23c6 Mon Sep 17 00:00:00 2001 From: cleverchuk Date: Fri, 26 Jul 2024 15:46:01 -0400 Subject: [PATCH] NH-82783: exclude duplicated class --- .github/workflows/push.yml | 20 ++++++++++++++++++-- agent/build.gradle | 2 ++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 001c44b6..b9fe6464 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -52,14 +52,29 @@ jobs: response=$(curl -fs \ -H "Authorization: Bearer $SIGN_PATH_API_TOKEN" \ -F "ProjectSlug=$SIGN_PATH_PROJECT_SLUG" \ + -F "ArtifactConfigurationSlug=$SIGN_PATH_ARTIFACT_SLUG" \ -F "SigningPolicySlug=$SIGN_PATH_SIGNING_POLICY" \ -F "Artifact=@agent/build/libs/solarwinds-apm-agent.jar" \ https://app.signpath.io/API/v1/$SIGN_PATH_ORG_ID/SigningRequests) + SIGNING_REQUEST_ID=$(echo "$response" | jq -r '.signingRequestId') - echo "request-id -> $SIGNING_REQUEST_ID" + state="" + while [[ "$state" != "true" ]] + do + response=$(curl -sSL \ + -H "Authorization: Bearer $SIGN_PATH_API_TOKEN" \ + https://app.signpath.io/API/v1/$SIGN_PATH_ORG_ID/SigningRequests/$SIGNING_REQUEST_ID) + + state=$(echo "$response" | jq -r ".isFinalStatus") + status_state=$(echo "$response" | jq -r ".status") + echo "Status -> $status_state" + + sleep 5 + done + curl -fs \ - -o agent/build/libs/solarwinds-apm-agent.jar \ + -o agent/build/libs/solarwinds-apm-agent-signed.jar \ -H "Authorization: Bearer $SIGN_PATH_API_TOKEN" \ https://app.signpath.io/API/v1/$SIGN_PATH_ORG_ID/SigningRequests/$SIGNING_REQUEST_ID/SignedArtifact env: @@ -67,6 +82,7 @@ jobs: SIGN_PATH_PROJECT_SLUG: ${{ secrets.SIGN_PATH_PROJECT_SLUG }} SIGN_PATH_SIGNING_POLICY: ${{ secrets.SIGN_PATH_SIGNING_POLICY }} SIGN_PATH_ORG_ID: ${{ secrets.SIGN_PATH_ORG_ID }} + SIGN_PATH_ARTIFACT_SLUG: ${{ secrets.SIGN_PATH_ARTIFACT_SLUG }} - name: Copy to S3 run: | diff --git a/agent/build.gradle b/agent/build.gradle index 5a4f33d6..91987210 100644 --- a/agent/build.gradle +++ b/agent/build.gradle @@ -123,6 +123,8 @@ tasks { } exclude("**/module-info.class") exclude("inst/com/solarwinds/opentelemetry/core/**") + exclude("com/solarwinds/joboe/shaded/google/errorprone/annotations/**") + relocatePackages(it) manifest {