mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-12-16 05:58:47 +01:00
let's try a Jenkinsfile
This commit is contained in:
37
Jenkinsfile
vendored
Normal file
37
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
tools {
|
||||
jdk 'jdk17'
|
||||
}
|
||||
|
||||
options {
|
||||
timestamps()
|
||||
disableConcurrentBuilds()
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '''
|
||||
./mvnw -V -B clean package
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
echo 'Build succeeded'
|
||||
}
|
||||
failure {
|
||||
echo 'Build failed'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user