Skip to content

Commit

Permalink
[#60feature/#60-restlib] sonarqube action added
Browse files Browse the repository at this point in the history
Signed-off-by: huluvu424242 <huluvu424242@gmail.com>
  • Loading branch information
Huluvu424242 committed Jan 29, 2023
1 parent 5d8e747 commit 3e23426
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,28 @@ jobs:
java-version: ${{ matrix.java-version }}
java-package: jdk
cache: 'maven'

- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Sonar Qube Analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mwvw.sh -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=Huluvu424242_jenkinsmonitor
- name: Build with Maven
run: ./mvnw.sh -PpruefeVersionen -Pheadless -PaddStandardArtifacts clean install


strategy:
matrix:
java-version:
Expand Down
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit-excluded-groups/>
<surefireArgLine/>
<sonar.organization>huluvu424242</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

<dependencies>
Expand Down Expand Up @@ -424,7 +426,7 @@
<requires>
<require>asciidoctor-diagram</require>
</requires>
<!-- <backend>html5</backend>-->
<!-- <backend>html5</backend>-->
<asciidoc>
<attributes>
<icons>font</icons>
Expand Down Expand Up @@ -503,7 +505,7 @@
</goals>
<configuration>
<tasks>
<echoproperties />
<echoproperties/>
</tasks>
</configuration>
</execution>
Expand Down Expand Up @@ -531,7 +533,8 @@
<configuration>
<archive>
<manifest>
<mainClass>com.github.funthomas424242.jenkinsmonitor.JenkinsMonitor</mainClass>
<mainClass>com.github.funthomas424242.jenkinsmonitor.JenkinsMonitor
</mainClass>
</manifest>
</archive>
<tarLongFileMode>posix</tarLongFileMode>
Expand Down

0 comments on commit 3e23426

Please sign in to comment.