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