Adds Jenkinsfile

This commit is contained in:
Kristian Knarvik 2024-05-14 14:41:33 +02:00
parent 525eaa6860
commit 7c8429a65c
2 changed files with 36 additions and 0 deletions

32
Jenkinsfile vendored Normal file
View File

@ -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
}
}
}
}

View File

@ -69,6 +69,10 @@
<id>dynmap</id> <id>dynmap</id>
<url>https://repo.mikeprimm.com/</url> <url>https://repo.mikeprimm.com/</url>
</repository> </repository>
<repository>
<id>knarcraft-repo</id>
<url>https://git.knarcraft.net/api/packages/EpicKnarvik97/maven</url>
</repository>
</repositories> </repositories>
<dependencies> <dependencies>