Terms of Service | Privacy Policy | Cookie Policy

Commit 34648ef5 authored by Uwe Plonus's avatar Uwe Plonus

Merge branch 'master' of github.com:uweplonus/quality-profile

parents bb8b0372 91d34157
@Library('jenkins-helpers@java-8')_
pipeline {
agent any
stages {
......@@ -8,12 +10,7 @@ pipeline {
}
stage('Build') {
steps {
withMaven(jdk: 'Current JDK 8',
maven: 'Current Maven 3',
mavenLocalRepo: '${JENKINS_HOME}/maven-repositories/${EXECUTOR_NUMBER}/',
globalMavenSettingsConfig: '9a4daf6d-06dd-434a-83cc-9ba9bd2326fc') {
sh "mvn clean install"
}
buildStep()
}
}
stage('Document and Deploy') {
......@@ -25,29 +22,8 @@ pipeline {
parallel {
stage('Deploy') {
steps {
withMaven(jdk: 'Current JDK 8',
maven: 'Current Maven 3',
mavenLocalRepo: '${JENKINS_HOME}/maven-repositories/${EXECUTOR_NUMBER}/',
globalMavenSettingsConfig: '03c863c2-c19c-4ed5-bc3a-7650b8f73ecf') {
sh "mvn deploy"
}
}
}
stage('Create Site') {
steps {
withMaven(jdk: 'Current JDK 8',
maven: 'Current Maven 3',
mavenLocalRepo: '${JENKINS_HOME}/maven-repositories/${EXECUTOR_NUMBER}/',
globalMavenSettingsConfig: '03c863c2-c19c-4ed5-bc3a-7650b8f73ecf') {
sh "mvn -Dscmpublish.skipCheckin=true post-site scm-publish:publish-scm"
}
withCredentials([string(credentialsId: "f9c0bd13-de91-4d90-a292-8fd2d05c26b0", variable: 'GH_TOKEN')]) {
sh """
cd target/scmpublish-checkout
git commit -a -m 'Automatic created documentation'
git push -fq https://${GH_TOKEN}@github.com/sw4j-org/quality-profile.git gh-pages:gh-pages
"""
}
doDeploy()
publishSite()
}
}
}
......
......@@ -30,6 +30,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gpg-plugin.version>1.6</gpg-plugin.version>
<project-info-reports-plugin-version>2.8</project-info-reports-plugin-version>
<scm-publish-plugin-version>1.1</scm-publish-plugin-version>
<site-plugin-version>3.4</site-plugin-version>
......@@ -79,6 +81,16 @@
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${gpg-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${project-info-reports-plugin-version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
......@@ -98,7 +110,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${project-info-reports-plugin-version}</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
......@@ -153,6 +164,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
......@@ -174,7 +204,7 @@
</snapshotRepository>
<site>
<id>github</id>
<url>scm:git:https://github.com/sw4j-org/quality-profile.git</url>
<url>scm:git:git@github.com:sw4j-org/quality-profile.git</url>
</site>
</distributionManagement>
......
<?xml version="1.0"?>
<ruleset name="Custom Rules"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>This is the PMD ruleset for sw4j.org</description>
<!-- Best Practices -->
<!-- Code Style -->
<rule ref="category/java/codestyle.xml/LocalHomeNamingConvention">
<priority>4</priority>
</rule>
<rule ref="category/java/codestyle.xml/LocalInterfaceSessionNamingConvention">
<priority>4</priority>
</rule>
<rule ref="category/java/codestyle.xml/MDBAndSessionBeanNamingConvention">
<priority>4</priority>
</rule>
<rule ref="category/java/errorprone.xml/StaticEJBFieldShouldBeFinal">
<priority>3</priority>
</rule>
<rule ref="category/java/errorprone.xml/UseProperClassLoader">
<priority>3</priority>
</rule>
<!-- Design -->
<!-- Documentation -->
<!-- Error Prone -->
<!-- Multithreading -->
<rule ref="category/java/multithreading.xml/DoNotUseThreads">
<priority>3</priority>
</rule>
<!-- Performance -->
</ruleset>
......@@ -4,10 +4,50 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<description>This is the PMD ruleset for sw4j.org</description>
<rule ref="rulesets/java/strictexception.xml/AvoidLosingExceptionInformation">
<priority>3</priority>
</rule>
<!--<rule ref="rulesets/java/design.xml/UnsynchronizedStaticDateFormatter">
<rule ref="rulesets/java/design.xml/AbstractClassWithoutAbstractMethod">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AccessorClassGeneration">
<priority>3</priority>
</rule>
<rule ref="category/java/bestpractices.xml/AccessorMethodGeneration">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/sunsecure.xml/ArrayIsStoredDirectly">
<priority>2</priority>
</rule>
<rule ref="rulesets/java/logging-java.xml/AvoidPrintStackTrace">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AvoidReassigningParameters">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/strings.xml/AvoidStringBufferField">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidUsingHardCodedIP">
<priority>3</priority>
<properties>
<property name="pattern" value="^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$"/>
</properties>
</rule>
<rule ref="rulesets/java/basic.xml/CheckResultSet">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AvoidConstantsInterface">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/DefaultLabelNotLastInSwitchStmt">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/logging-jakarta-commons.xml/GuardLogStatement">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/strictexception.xml/AvoidLosingExceptionInformation">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/UnsynchronizedStaticDateFormatter">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/j2ee.xml/MDBAndSessionBeanNamingConvention">
......@@ -136,12 +176,6 @@
<rule ref="rulesets/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/basic.xml/AvoidUsingHardCodedIP">
<priority>3</priority>
<properties>
<property name="pattern" value="^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$"/>
</properties>
</rule>
<rule ref="rulesets/java/basic.xml/DontUseFloatTypeForLoopIndices">
<priority>3</priority>
</rule>
......@@ -382,9 +416,6 @@
<rule ref="rulesets/java/naming.xml/SuspiciousHashcodeMethodName">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/logging-jakarta-commons.xml/GuardLogStatement">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/imports.xml/UnusedImports">
<priority>5</priority>
</rule>
......@@ -482,9 +513,6 @@
<property name="IgnoreJUnitCompletely" value="false"/>
</properties>
</rule>
<rule ref="rulesets/java/strings.xml/AvoidStringBufferField">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/strings.xml/UselessStringValueOf">
<priority>4</priority>
</rule>
......@@ -570,15 +598,9 @@
<rule ref="rulesets/java/optimizations.xml/LocalVariableCouldBeFinal">
<priority>4</priority>
</rule>
<rule ref="rulesets/java/design.xml/DefaultLabelNotLastInSwitchStmt">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/SingularField">
<priority>4</priority>
</rule>
<rule ref="rulesets/java/logging-java.xml/AvoidPrintStackTrace">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/strings.xml/UseIndexOfChar">
<priority>3</priority>
</rule>
......@@ -678,18 +700,12 @@
<rule ref="rulesets/java/basic.xml/ExtendsObject">
<priority>4</priority>
</rule>
<rule ref="rulesets/java/design.xml/AccessorClassGeneration">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/codesize.xml/TooManyFields">
<priority>3</priority>
<properties>
<property name="maxfields" value="15"/>
</properties>
</rule>
<rule ref="rulesets/java/basic.xml/CheckResultSet">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/empty.xml/EmptyTryBlock">
<priority>3</priority>
</rule>
......@@ -778,9 +794,6 @@
<rule ref="rulesets/java/naming.xml/NoPackage">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AbstractClassWithoutAbstractMethod">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/UncommentedEmptyConstructor">
<priority>3</priority>
<properties>
......@@ -811,9 +824,6 @@
<rule ref="rulesets/java/strictexception.xml/AvoidRethrowingException">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AvoidConstantsInterface">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/unusedcode.xml/UnusedFormalParameter">
<priority>3</priority>
</rule>
......@@ -859,9 +869,6 @@
<rule ref="rulesets/java/braces.xml/IfStmtsMustUseBraces">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/AvoidReassigningParameters">
<priority>3</priority>
</rule>
<rule ref="rulesets/java/design.xml/CloseResource">
<priority>2</priority>
<properties>
......@@ -886,5 +893,5 @@
</rule>
<rule ref="rulesets/java/naming.xml/PackageCase">
<priority>3</priority>
</rule>-->
</rule>
</ruleset>
This diff is collapsed.
......@@ -8,12 +8,12 @@
<ignoreVersion type="regex">.*\.Draft.*</ignoreVersion>
</ignoreVersions>
<rules>
<rule groupId="org.apache.maven.doxia" artifactId="doxia-module-markdown" comparisonMethod="maven">
<ignoreVersions>
<!--<rule groupId="org.apache.maven.doxia" artifactId="doxia-module-markdown" comparisonMethod="maven">
<ignoreVersions>-->
<!-- This version needs the maven-site-plugin 3.5 which is not yet released -->
<ignoreVersion>1.7</ignoreVersion>
<!--<ignoreVersion>1.7</ignoreVersion>
</ignoreVersions>
</rule>
</rule>-->
</rules>
</ruleset>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment