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 a5a8aa9..e98808a 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,10 @@ + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + spigotmc-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/ @@ -81,6 +85,16 @@ https://repo.citizensnpcs.co/ + + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + + + gitea + https://git.knarcraft.net/api/packages/EpicKnarvik97/maven + +