diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..d4b378667 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } +} diff --git a/README.md b/README.md index d3d04067c..207d6bc7c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ If you are using maven, you can add mcMMO API to your plugin by adding it to pom com.gmail.nossr50.mcMMO mcMMO - 2.2.004 + put-the-version-here ``` ### Builds