pipeline {
agent any
stages {
stage('Init') {
steps {
sh "rm -rf build/libs/"
sh "chmod +x gradlew"
}
stage ('Build') {
when {
branch '1.16'
sh "./gradlew clean build publish curseTools --stacktrace"
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true