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