Skip to content

Fix persisting the Cobbler UID in the database via XML-RPC createSystemRecord (bsc#1207532) #145

Fix persisting the Cobbler UID in the database via XML-RPC createSystemRecord (bsc#1207532)

Fix persisting the Cobbler UID in the database via XML-RPC createSystemRecord (bsc#1207532) #145

Workflow file for this run

name: Sonarcloud analysis
on:
push:
branches:
- master
paths:
- 'java/**.java'
- 'java/**.xml'
- '**.py'
- 'web/html/src/**.ts'
- 'web/html/src/**.tsx'
pull_request:
paths:
- 'java/**.java'
- 'java/**.xml'
- '**.py'
- 'web/html/src/**.ts'
- 'web/html/src/**.tsx'
jobs:
sonarcloud:
runs-on: ubuntu-latest
container: registry.opensuse.org/systemsmanagement/uyuni/master/docker/containers/uyuni-master-pgsql:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: java/lib
key: ${{ runner.os }}-java-lib-${{ hashFiles('java/buildconf/ivy/*.*') }}
- name: Resolve dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
ant -f java/manager-build.xml ivy
- name: Compile Java
run: ant -f java/manager-build.xml compile
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_AUTH_UYUNI }}
args: >
-Dsonar.junit.reportPaths=""
-Dsonar.coverage.jacoco.xmlReportPaths=""
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}