Merge branch 'master' of https://github.com/mcMMO-Dev/mcMMO into spears

This commit is contained in:
nossr50
2025-12-14 13:39:03 -08:00

16
Jenkinsfile vendored
View File

@@ -3,6 +3,8 @@ pipeline {
tools { tools {
jdk 'jdk17' jdk 'jdk17'
// If you configured Maven as a Jenkins tool, add:
// maven 'Maven3'
} }
options { options {
@@ -19,11 +21,18 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
sh ''' sh 'mvn -V -B clean package'
mvn -V -B clean package
'''
} }
} }
stage('Deploy to Nexus') {
steps {
configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s "$MAVEN_SETTINGS" -V -B deploy'
}
}
}
} }
post { post {
@@ -31,5 +40,4 @@ pipeline {
archiveArtifacts artifacts: 'target/mcMMO.jar', fingerprint: true archiveArtifacts artifacts: 'target/mcMMO.jar', fingerprint: true
} }
} }
} }