Initial commit

This commit is contained in:
Maarten 2025-04-17 15:43:39 +02:00
commit ee86b7d84a
9 changed files with 384 additions and 0 deletions

36
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,36 @@
pipeline {
agent any
tools {
maven 'Maven 3.9.9'
}
environment {
MAVEN_OPTS = '-Dmaven.repo.local=.m2/repository'
}
stages {
stage('Build') {
steps {
sh 'mvn clean install'
}
}
stage('Archive Artifacts') {
steps {
script {
def artifact = sh(script: "mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout", returnStdout: true).trim()
archiveArtifacts artifacts: "**/target/${artifact}-*.jar", fingerprint: true, allowEmptyArchive: true
}
}
}
// stage('Notify Discord') {
// steps {
// script {
// discordSend webhookURL: '<DISCORD_WEBHOOK_URL>', title: "${env.JOB_NAME} #${env.BUILD_NUMBER}", enableArtifactsList: true, showChangeset: true, link: env.BUILD_URL, result: currentBuild.currentResult
// }
// }
// }
}
}