From 09414844324ed39ee7780fdfe16d77272ebb8cf1 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Thu, 7 Dec 2023 09:33:34 +0100 Subject: [PATCH] Attempt to fix the build/deploy workflow with JFrog CLI --- .../workflows/continuous-integration-43x.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/continuous-integration-43x.yml b/.github/workflows/continuous-integration-43x.yml index 529e35650..f9a3be1fe 100644 --- a/.github/workflows/continuous-integration-43x.yml +++ b/.github/workflows/continuous-integration-43x.yml @@ -17,16 +17,12 @@ jobs: with: ref: '4.3.x' - - name: Set up JDK 8 - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 + - name: Set up Gradle + uses: spring-io/spring-gradle-build-action@6efab5a8a19abb6f42ee20e9d6207859bf2fca02 # v2.0.1 with: java-version: '8' distribution: 'adopt' - - name: Build the project - run: | - ./gradlew clean build install --parallel --stacktrace --info - - name: Setup JFrog Cli uses: jfrog/setup-jfrog-cli@901bb9632db90821c2d3f076012bdeaf66598555 # v3.4.1 env: @@ -34,12 +30,11 @@ jobs: - name: Configure JFrog Cli run: | - jf gradlec --use-wrapper --repo-deploy libs-snapshot-local + jf gradlec --repo-deploy libs-snapshot-local echo JFROG_CLI_BUILD_NAME=${{ github.event.repository.name }}-${{ github.ref_name }} >> $GITHUB_ENV echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV - - name: Deploy to Artifactory + - name: Build the project and Deploy to Artifactory run: | - jf rt upload \ - --spec .github/release-files-spec.json \ - --spec-vars "buildname=$JFROG_CLI_BUILD_NAME;buildnumber=$JFROG_CLI_BUILD_NUMBER" + jf gradle build artifactoryPublish --parallel --stacktrace --info + jf rt build-publish