Migrated to Open Eggbert
This commit is contained in:
parent
89cca22536
commit
32cdd7f441
2
CREDITS
2
CREDITS
@ -1,5 +1,5 @@
|
|||||||
This file partially lists people, that have contributed to
|
This file partially lists people, that have contributed to
|
||||||
the "RobertVokac Java Format Checkstyle" project. They are sorted by name.
|
the "Open Eggbert Java Format Checkstyle" project. They are sorted by name.
|
||||||
The fields are: name (N), e-mail (E), web-address (W),
|
The fields are: name (N), e-mail (E), web-address (W),
|
||||||
PGP key ID and fingerprint (P), description (D) and
|
PGP key ID and fingerprint (P), description (D) and
|
||||||
snail-mail address (S).
|
snail-mail address (S).
|
||||||
|
129
Jenkinsfile
vendored
129
Jenkinsfile
vendored
@ -1,129 +0,0 @@
|
|||||||
pipeline
|
|
||||||
{
|
|
||||||
agent any
|
|
||||||
environment {
|
|
||||||
AAA = 'aaa'
|
|
||||||
}
|
|
||||||
stages
|
|
||||||
{
|
|
||||||
stage('Build')
|
|
||||||
{
|
|
||||||
steps {
|
|
||||||
|
|
||||||
echo "*** Building ${env.JOB_NAME} ***"
|
|
||||||
sh '''
|
|
||||||
#!/bin/bash
|
|
||||||
echo JOB_NAME=$JOB_NAME
|
|
||||||
|
|
||||||
if [ -z "$JAVA_21_HOME" ]
|
|
||||||
then
|
|
||||||
echo "KO : Variable JAVA_21_HOME is empty. You fix this issue by adding this variable to configuration of Jenkins."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "OK : Variable JAVA_21_HOME is NOT empty"
|
|
||||||
fi
|
|
||||||
export JAVA_HOME=$JAVA_21_HOME
|
|
||||||
case $BRANCH_NAME in
|
|
||||||
|
|
||||||
master | deploy_prod)
|
|
||||||
mvn clean install
|
|
||||||
;;
|
|
||||||
|
|
||||||
develop | jenkins | deploy_test)
|
|
||||||
echo Branch $BRANCH_NAME is supported. Continuing.
|
|
||||||
version=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
|
|
||||||
echo version=$version
|
|
||||||
case "$version" in
|
|
||||||
*"SNAPSHOT"*) echo echo version is OK ;;
|
|
||||||
* ) echo echo "You cannot build releases on Jenkins, only snapshots!"&&exit 1 ;;
|
|
||||||
esac
|
|
||||||
mvn clean deploy
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo Branch $BRANCH_NAME is not supported. A failure happened. Exiting.
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "Build of $JOB_NAME was successful"
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy')
|
|
||||||
{
|
|
||||||
steps {
|
|
||||||
echo "*** Deploying ${env.JOB_NAME} ***"
|
|
||||||
|
|
||||||
sh '''
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Nothing to do"
|
|
||||||
exit
|
|
||||||
case $BRANCH_NAME in
|
|
||||||
|
|
||||||
master)
|
|
||||||
echo Branch $BRANCH_NAME is supported. Continuing.
|
|
||||||
OUT_DIR=$DEFAULT_LATEST_OUT_DIR
|
|
||||||
;;
|
|
||||||
|
|
||||||
develop | jenkins)
|
|
||||||
echo Branch $BRANCH_NAME is supported. Continuing.
|
|
||||||
OUT_DIR=$DEFAULT_SNAPSHOT_OUT_DIR
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo Branch $BRANCH_NAME is not supported. A failure happened. Exiting.
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -z "$DOC_NAME" ]
|
|
||||||
then
|
|
||||||
echo "KO : Variable DOC_NAME is empty. You fix this issue by adding this variable to section 'environment' of this Jenkinsfile"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "OK : Variable DOC_NAME is NOT empty"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$DOCS_ROOT_DIR" ]
|
|
||||||
then
|
|
||||||
echo "KO : Variable DOCS_ROOT_DIR is empty. You fix this issue by adding this variable to Jenkins configuration"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "OK : Variable DOCS_ROOT_DIR is NOT empty"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "OUT_DIR=$OUT_DIR"
|
|
||||||
FULL_OUTPUT_DIR=$DOCS_ROOT_DIR/$DOC_NAME/$OUT_DIR
|
|
||||||
if [ -z "$FULL_OUTPUT_DIR" ]
|
|
||||||
then
|
|
||||||
echo "KO : Variable FULL_OUTPUT_DIR is empty"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "OK Variable FULL_OUTPUT_DIR is NOT empty"
|
|
||||||
rsync -vaz ./generated/ $FULL_OUTPUT_DIR
|
|
||||||
echo "Deployment of documentation was successful"
|
|
||||||
fi
|
|
||||||
'''
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
env.color = "${currentBuild.currentResult == 'SUCCESS' ? 'green' : 'red'}"
|
|
||||||
}
|
|
||||||
|
|
||||||
echo 'Sending e-mail.'
|
|
||||||
sh "printenv | sort"
|
|
||||||
emailext body: "<b style=\"color:$COLOR\">${currentBuild.currentResult}</b> - ${env.JOB_NAME} (#${env.BUILD_NUMBER})<br> <ul style=\"margin-top:2px;padding-top:2px;padding-left:30px;\"><li>More info at: <a href=\"${env.BUILD_URL}\">${env.BUILD_URL}</a></li></ul>",
|
|
||||||
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
|
|
||||||
subject: "Jenkins Build - ${currentBuild.currentResult} - $JOB_NAME (#$BUILD_NUMBER)"
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
# robertvokac-javaformat-checkstyle
|
# open-eggbert-javaformat-checkstyle
|
||||||
|
|
||||||
This is a Java library, which encapsulates RobertVokac Checkstyle XML configuration file.
|
This is a Java library, which encapsulates Open Eggbert Checkstyle XML configuration file.
|
||||||
|
54
pom.xml
54
pom.xml
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
robertvokac-javaformat-checkstyle: Encapsulates RobertVokac Checkstyle XML configuration file.
|
open-eggbert-javaformat-checkstyle: Encapsulates Open Eggbert Checkstyle XML configuration file.
|
||||||
Copyright (C) 2018-2024 the original author or authors.
|
Copyright (C) 2018-2025 the original author or authors.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or
|
This program is free software: you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
@ -24,12 +24,12 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>com.robertvokac.essential</groupId>
|
<groupId>com.openeggbert.essential</groupId>
|
||||||
<artifactId>robertvokac-javaformat-checkstyle</artifactId>
|
<artifactId>open-eggbert-javaformat-checkstyle</artifactId>
|
||||||
<version>0.1.1-SNAPSHOT</version>
|
<version>0.1.2-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>robertvokac-javaformat-checkstyle</name>
|
<name>open-eggbert-javaformat-checkstyle</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<javase.version>21</javase.version>
|
<javase.version>21</javase.version>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.10.1</version>
|
<version>3.13.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>${javase.version}</source>
|
<source>${javase.version}</source>
|
||||||
<target>${javase.version}</target>
|
<target>${javase.version}</target>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
<version>3.2.1</version>
|
<version>3.3.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-sources</id>
|
<id>attach-sources</id>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.5.0</version>
|
<version>3.6.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>attach-javadocs</id>
|
<id>attach-javadocs</id>
|
||||||
@ -101,41 +101,43 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>robertvokac-releases-repository</id>
|
<id>openeggbert-releases-repository</id>
|
||||||
<name>robertvokac-releases-repository</name>
|
<name>openeggbert-releases-repository</name>
|
||||||
<url>https://maven.robertvokac.com/releases</url>
|
<url>https://maven.openeggbert.com/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>robertvokac-snapshots-repository</id>
|
<id>openeggbert-snapshots-repository</id>
|
||||||
<name>robertvokac-snapshots-repository</name>
|
<name>openeggbert-snapshots-repository</name>
|
||||||
<url>https://maven.robertvokac.com/snapshots</url>
|
<url>https://maven.openeggbert.com/snapshots</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>robertvokac-releases-repository</id>
|
<id>openeggbert-releases-repository</id>
|
||||||
<name>robertvokac-releases-repository</name>
|
<name>openeggbert-releases-repository</name>
|
||||||
<url>https://maven.robertvokac.com/releases</url>
|
<url>https://maven.openeggbert.com/releases</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>robertvokac-snapshots-repository</id>
|
<id>openeggbert-snapshots-repository</id>
|
||||||
<name>robertvokac-snapshots-repository</name>
|
<name>openeggbert-snapshots-repository</name>
|
||||||
<url>https://maven.robertvokac.com/snapshots</url>
|
<url>https://maven.openeggbert.com/snapshots</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>robertvokac-releases-repository</id>
|
<id>openeggbert-releases-repository</id>
|
||||||
<url>https://maven.robertvokac.com/releases</url>
|
<url>https://maven.openeggbert.com/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>robertvokac-snapshots-repository</id>
|
<id>openeggbert-snapshots-repository</id>
|
||||||
<url>https://maven.robertvokac.com/snapshots</url>
|
<url>https://maven.openeggbert.com/snapshots</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// robertvokac-javaformat-checkstyle: Encapsulates RobertVokac Checkstyle XML configuration file.
|
// open-eggbert-javaformat-checkstyle: Encapsulates Open Eggbert Checkstyle XML configuration file.
|
||||||
// Copyright (C) 2018-2024 the original author or authors.
|
// Copyright (C) 2018-2025 the original author or authors.
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or
|
// This program is free software: you can redistribute it and/or
|
||||||
// modify it under the terms of the GNU General Public License
|
// modify it under the terms of the GNU General Public License
|
||||||
@ -18,13 +18,13 @@
|
|||||||
// <https://www.gnu.org/licenses/> or write to the Free Software
|
// <https://www.gnu.org/licenses/> or write to the Free Software
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
package com.robertvokac.robertvokacjavaformatcheckstyle;
|
package com.openeggbert.openeggbertjavaformatcheckstyle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A dummy class
|
* A dummy class
|
||||||
* @author robertvokac@robertvokac.org
|
* @author robertvokac@robertvokac.org
|
||||||
*/
|
*/
|
||||||
public class RobertVokacJavaFormatCheckstyle {
|
public class OpenEggbertJavaFormatCheckstyle {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("Hello. This is only a dummy class and does nothing.");
|
System.out.println("Hello. This is only a dummy class and does nothing.");
|
||||||
}
|
}
|
Reference in New Issue
Block a user