Terms of Service | Privacy Policy | Cookie Policy

Unverified Commit 3f561607 authored by Uwe Plonus's avatar Uwe Plonus Committed by GitHub

Merge pull request #14 from uweplonus/master

Updated Jenkinsfile and pom.xml for new structure
parents 740d184d 969bd1f6
@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' || echo 'Nothing to commit.'
git push -fq https://${GH_TOKEN}@github.com/sw4j-org/quality-profile.git gh-pages:gh-pages
"""
}
doDeploy()
publishSite()
}
}
}
......
......@@ -86,6 +86,11 @@
<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>
......@@ -105,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>
......@@ -200,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>
This diff is collapsed.
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