From 7c8429a65c7c48174c4d26cb2fb292debd571d10 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 14 May 2024 14:41:33 +0200 Subject: [PATCH] Adds Jenkinsfile --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ pom.xml | 4 ++++ 2 files changed, 36 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..621d346 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +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('Verify') { + steps { + echo 'Verifying...' + sh 'mvn verify -Dmaven.test.skip=true' + } + } + stage('Deploy') { + steps { + echo 'Deploying...' + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true + } + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 7ac659a..fe0c1eb 100644 --- a/pom.xml +++ b/pom.xml @@ -69,6 +69,10 @@ dynmap https://repo.mikeprimm.com/ + + knarcraft-repo + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven +