From 79cbfb4fb21ee4b59b25438c8653b22bf0ed6305 Mon Sep 17 00:00:00 2001 From: SupremeMortal Date: Wed, 24 Jul 2019 19:50:51 +0100 Subject: [PATCH] Jenkins support --- Jenkinsfile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..96ff1b01 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,49 @@ +pipeline { + agent any + tools { + maven 'Maven 3' + jdk 'Java 8' + } + options { + buildDiscarder(logRotator(artifactNumToKeepStr: '5')) + } + stages { + stage ('Build') { + steps { + sh 'mvn clean package' + } + post { + success { + archiveArtifacts artifacts: 'target/Geyser.jar', fingerprint: true + } + } + } + + stage ('Deploy') { + when { + branch "master" + } + steps { + sh 'mvn javadoc:jar source:jar deploy -DskipTests' + } + } + + stage ('Javadoc') { + when { + branch "master" + } + steps { + sh 'mvn javadoc:javadoc -DskipTests -pl api' + step([$class: 'JavadocArchiver', + javadocDir: 'api/target/site/apidocs', + keepAll: false]) + } + } + } + + post { + always { + deleteDir() + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index cd9dc69a..973d270f 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,7 @@ GeyserMC Allows for players from Minecraft Bedrock Edition to join Minecraft Java Edition servers. https://geysermc.org + Geyser UTF-8 @@ -17,21 +18,25 @@ 1.8 1.8 + GeyserMC https://github.com/GeyserMC/Geyser/blob/master/pom.xml + scm:git:https://github.com/GeyserMC/Geyser.git scm:git:git@github.com:GeyserMC/Geyser.git https://github.com/GeyserMC/Geyser + api common connector plugin + CodeMC-repo @@ -44,10 +49,40 @@ - nukkitx-repo + nukkitx-release-repo https://repo.nukkitx.com/maven-releases/ + + true + + + false + + + + nukkitx-snapshot-repo + https://repo.nukkitx.com/maven-snapshots/ + + false + + + true + + + + + releases + nukkitx-releases + https://repo.nukkitx.com/maven-releases + + + snapshots + nukkitx-snapshots + https://repo.nukkitx.com/maven-snapshots + + + clean install