Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/build-and-generate-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,27 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: >
test jacocoTestReport sonarqube --no-build-cache --stacktrace
test jacocoTestReport --no-build-cache --stacktrace
-PpushToCache=${{ inputs.push-to-artifactory-cache }}
-PdisableRemoteCache=${{ !inputs.use-artifactory-cache }}
${{ env.SERVER_BUILD_ARGS }}
-PuseDevRepo=true
build-root-directory: "${{ inputs.working-directory }}/${{ inputs.server-path }}"
cache-disabled: true

- name: Set up Java 21 for Sonar
if: inputs.build_server && !inputs.skip-tests
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: adopt

- name: Run Sonar analysis
if: inputs.build_server && !inputs.skip-tests
uses: gradle/gradle-build-action@v2
with:
arguments: >
sonarqube --no-build-cache --stacktrace
-PpushToCache=${{ inputs.push-to-artifactory-cache }}
-PdisableRemoteCache=${{ !inputs.use-artifactory-cache }}
${{ env.SERVER_BUILD_ARGS }}
Expand All @@ -421,6 +441,13 @@ jobs:
build-root-directory: "${{ inputs.working-directory }}/${{ inputs.server-path }}"
cache-disabled: true

- name: Restore Java 17
if: inputs.build_server && !inputs.skip-tests
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java_version }}
distribution: adopt

- name: Copy Test Reports
working-directory: "${{ inputs.working-directory }}"
shell: bash
Expand Down Expand Up @@ -686,4 +713,4 @@ jobs:
cd ~/rpmbuild/RPMS/noarch/
ls -al
uploaded_rpm_name=$(ls -1 *.rpm)
echo "uploaded_rpm_name=$uploaded_rpm_name" >> $GITHUB_OUTPUT
echo "uploaded_rpm_name=$uploaded_rpm_name" >> $GITHUB_OUTPUT
Loading