From 56753efbc79f3ca7a2ff4fc61e2e2588e04ba688 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 26 Nov 2022 14:36:59 +0100 Subject: [PATCH] Adds 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 dbb4859..f0cce07 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,10 @@ + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + codemc-repo https://repo.codemc.io/repository/maven-public/ @@ -93,6 +97,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 + +