From 4b902103c73a929b0289069865af8ca2fa7097df Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 2 Jan 2024 13:13:24 -0500 Subject: [PATCH] Try to use latest JFrog CLI According to the recommendations from https://github.com/jfrog/jfrog-cli/issues/2364 --- .github/workflows/verify-staged-artifacts.yml | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/verify-staged-artifacts.yml b/.github/workflows/verify-staged-artifacts.yml index cbe3b28f40..db980a7f86 100644 --- a/.github/workflows/verify-staged-artifacts.yml +++ b/.github/workflows/verify-staged-artifacts.yml @@ -8,13 +8,6 @@ on: required: true type: string -env: - GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }} - GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} - GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} - ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} - ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - jobs: verify-staged-with-samples: runs-on: ubuntu-latest @@ -26,24 +19,31 @@ jobs: repository: spring-projects/spring-integration show-progress: false - - name: Set up Gradle - uses: spring-io/spring-gradle-build-action@v2 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + cache: 'gradle' + + - uses: jfrog/setup-jfrog-cli@v3 + with: + version: 2.52.3 + env: + JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }} + + - name: Configure JFrog Cli + run: jf gradlec --repo-resolve libs-staging-local - - name: Prepare Spring Integration project against Staging + - name: Verify Spring Integration Kafka against staged release run: | - printf "allprojects { - repositories { - maven { - url 'https://repo.spring.io/libs-staging-local' - credentials { - username = '$ARTIFACTORY_USERNAME' - password = '$ARTIFACTORY_PASSWORD' - } - } - } - }" > staging-repo-init.gradle - sed -i "1,/springKafkaVersion.*/s/springKafkaVersion.*/springKafkaVersion='${{ inputs.releaseVersion }}'/" build.gradle + jf gradle :spring-integration-kafka:check - - name: Verify Spring Integration Samples against staged release - run: gradle :spring-integration-kafka:check --init-script staging-repo-init.gradle \ No newline at end of file + - name: Capture Test Results + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-results + path: '**/target/surefire-reports/**/*.*' + retention-days: 1 \ No newline at end of file