Skip to content

EPMRPP-114990 || View Mobitru video on log level in Remote device tab… #23

EPMRPP-114990 || View Mobitru video on log level in Remote device tab…

EPMRPP-114990 || View Mobitru video on log level in Remote device tab… #23

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
branches:
- master
- develop
push:
branches:
- master
- develop
paths-ignore:
- '.github/**'
- 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@v5
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '25'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup git credentials
uses: oleksiyrudenko/gha-git-credentials@v2
with:
name: 'reportportal.io'
email: 'support@reportportal.io'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle
run: |
BASE_VERSION="$(grep '^version=' gradle.properties | cut -d= -f2)"
REF_NAME="${{ github.head_ref || github.ref_name }}"
if [ "$REF_NAME" = "develop" ]; then
VERSION="${BASE_VERSION}-dev.${{ github.run_number }}"
elif [[ "$REF_NAME" == feature/* ]]; then
VERSION="$(echo "$REF_NAME" | tr '/' '-')"
VERSION="${VERSION}-${{ github.run_number }}"
elif [ "$REF_NAME" = "master" ]; then
VERSION="${BASE_VERSION}"
else
VERSION="$(echo "$REF_NAME" | tr '/' '-')"
VERSION="${VERSION}-${{ github.run_number }}"
fi
echo "Building version: ${VERSION}"
./gradlew build --stacktrace -Pversion="${VERSION}"
- 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