From d3fb27176efa514c4568210067e77bd91eea3951 Mon Sep 17 00:00:00 2001 From: Nicolas Erices Date: Thu, 6 Nov 2025 12:08:31 -0300 Subject: [PATCH 1/3] added s3 plugin artifact reusable workflow into build.yml --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e89896f..e3ee5ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: Build on: + workflow_dispatch: pull_request: push: branches: @@ -11,12 +12,22 @@ on: - README.md - gradle.properties +permissions: + id-token: write + contents: read + actions: read + + +env: + AWS_REGION: eu-central-1 + jobs: build: runs-on: ubuntu-latest + steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: Set up JDK 21 uses: actions/setup-java@v2 @@ -35,6 +46,22 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Build with Gradle - id: build - run: | - ./gradlew build + run: ./gradlew build --stacktrace + + - name: Upload built jars + uses: actions/upload-artifact@v4 + with: + name: build-libs + path: build/libs/*.jar + retention-days: 1 + + + upload: + needs: build + if: github.ref_name == 'develop' || startsWith(github.ref_name, 'feature/') + uses: reportportal/.github/.github/workflows/upload-plugin-artifact.yaml@main + with: + plugin_name: ${{ github.event.repository.name }} + branch_name: ${{ github.ref_name }} + run_number: "${{ github.run_number }}" + secrets: inherit \ No newline at end of file From 58a3f2a45509f6293a4eb59c8fe393f4dc21f6a1 Mon Sep 17 00:00:00 2001 From: Nicolas Erices Date: Thu, 6 Nov 2025 12:18:48 -0300 Subject: [PATCH 2/3] fixed dependencies implementation with develop-SNAPSHOT instead of fixed commit snapshot --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 4e77399..b5df1a0 100644 --- a/build.gradle +++ b/build.gradle @@ -48,9 +48,9 @@ dependencies { implementation 'com.epam.reportportal:plugin-api' annotationProcessor 'com.epam.reportportal:plugin-api' } else { - implementation 'com.github.reportportal:commons-dao:9b8b695' - implementation 'com.github.reportportal:plugin-api:9bd040f' - annotationProcessor 'com.github.reportportal:plugin-api:9bd040f' + implementation 'com.github.reportportal:commons-dao:develop-SNAPSHOT' + implementation 'com.github.reportportal:plugin-api:develop-SNAPSHOT' + annotationProcessor 'com.github.reportportal:plugin-api:develop-SNAPSHOT' } compileOnly "org.projectlombok:lombok:${lombokVersion}" From b6f6cf10c944bb9812cfb55bf973ab6787dcb38e Mon Sep 17 00:00:00 2001 From: Nicolas Erices Date: Thu, 6 Nov 2025 12:39:51 -0300 Subject: [PATCH 3/3] deleted env config --- .github/workflows/build.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3ee5ad..49b3ff2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,6 @@ permissions: contents: read actions: read - -env: - AWS_REGION: eu-central-1 - jobs: build: runs-on: ubuntu-latest @@ -30,9 +26,9 @@ jobs: uses: actions/checkout@v5 - name: Set up JDK 21 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: - distribution: 'adopt' + distribution: 'temurin' java-version: '21' - name: Grant execute permission for gradlew @@ -55,7 +51,6 @@ jobs: path: build/libs/*.jar retention-days: 1 - upload: needs: build if: github.ref_name == 'develop' || startsWith(github.ref_name, 'feature/') @@ -64,4 +59,4 @@ jobs: plugin_name: ${{ github.event.repository.name }} branch_name: ${{ github.ref_name }} run_number: "${{ github.run_number }}" - secrets: inherit \ No newline at end of file + secrets: inherit