Skip to content

Commit

Permalink
~ experimental: jenkins pipeline for home server #32
Browse files Browse the repository at this point in the history
  • Loading branch information
kasisoft committed Aug 20, 2024
1 parent 1272a62 commit 261677a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ pipeline {
}
environment {
USER = 'kasimir'
SONAR_URL = credentials('sonar.url')
SONAR_LOGIN = credentials('sonar.login')
}
stages {
stage('Initialize') {
Expand All @@ -33,7 +31,6 @@ pipeline {
}
stage('SonarQube Analysis') {
steps {
// sh 'mvn clean verify -Psonar -Dsonar.host.url=${SONAR_URL} -Dsonar.login=$SONAR_LOGIN -Dsonar.projectKey=kcl'
sh 'mvn clean verify -Psonar -Dsonar.projectKey=kcl'
}
}
Expand Down
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<maven-source-plugin.version>3.3.0</maven-source-plugin.version>
<maven-surefire-plugin.version>3.2.2</maven-surefire-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>

<!-- maven settings -->
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down Expand Up @@ -227,12 +228,32 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>-Duser.country=DE -Duser.language=de</argLine>
<argLine>@{argLine} -Duser.country=DE -Duser.language=de</argLine>
<excludes>
<exclude>com/kasisoft/libs/common/test/graphics/**</exclude>
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
Expand All @@ -244,6 +265,11 @@
<artifactId>maven-bundle-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>

</plugins>

</build>
Expand Down

0 comments on commit 261677a

Please sign in to comment.