From 1e0a40716488cfc3c14300eea1c9054f59bc719d Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 12 Dec 2023 09:04:02 +0100 Subject: [PATCH] Attempt to manually upload pom files to Artifactory --- .github/workflows/continuous-integration-43x.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/continuous-integration-43x.yml b/.github/workflows/continuous-integration-43x.yml index b8113b90e..c6f34d45e 100644 --- a/.github/workflows/continuous-integration-43x.yml +++ b/.github/workflows/continuous-integration-43x.yml @@ -23,6 +23,11 @@ jobs: java-version: '8' distribution: 'adopt' + - name: Extract project version + run: | + ./gradlew clean + echo PROJECT_VERSION=$(./gradlew properties | grep version | cut -d: -f2 | xargs) >> $GITHUB_ENV + - name: Setup JFrog Cli uses: jfrog/setup-jfrog-cli@901bb9632db90821c2d3f076012bdeaf66598555 # v3.4.1 env: @@ -37,4 +42,8 @@ jobs: - name: Build the project and Deploy to Artifactory run: | jf gradle build install artifactoryPublish -x test + jf rt upload spring-batch-infrastructure/build/poms/pom-default.xml libs-snapshot-local/org/springframework/batch/spring-batch-infrastructure/$PROJECT_VERSION/spring-batch-infrastructure-$PROJECT_VERSION.pom + jf rt upload spring-batch-core/build/poms/pom-default.xml libs-snapshot-local/org/springframework/batch/spring-batch-core/$PROJECT_VERSION/spring-batch-core-$PROJECT_VERSION.pom + jf rt upload spring-batch-test/build/poms/pom-default.xml libs-snapshot-local/org/springframework/batch/spring-batch-test/$PROJECT_VERSION/spring-batch-test-$PROJECT_VERSION.pom + jf rt upload spring-batch-integration/build/poms/pom-default.xml libs-snapshot-local/org/springframework/batch/spring-batch-integration/$PROJECT_VERSION/spring-batch-integration-$PROJECT_VERSION.pom jf rt build-publish