From c9ff3af6ac0cafb329afce4db859721008216462 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 26 Nov 2022 04:13:41 +0100 Subject: [PATCH] Adds distribution management and Jenkinsfile --- Jenkinsfile | 27 +++++++++++++++++++++++++++ pom.xml | 14 ++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..5a47c8f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + tools { + jdk 'JDK17' + } + stages { + stage('Build') { + steps { + echo 'Building...' + sh 'mvn clean & mvn validate & mvn compile' + } + } + stage('Test') { + steps { + echo 'Testing...' + sh 'mvn test' + } + } + stage('Deploy') { + steps { + echo 'Deploying...' + sh 'mvn verify -Dmaven.test.skip=true' + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true + } + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 35d0420..d50c3b5 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,10 @@ + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + spigot-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ @@ -32,6 +36,16 @@ https://nexus.hc.to/content/repositories/pub_releases + + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + +