TechReborn/Jenkinsfile

24 lines
466 B
Text
Raw Normal View History

2020-01-04 23:44:24 +01:00
pipeline {
agent any
stages {
2019-07-25 15:16:30 +02:00
2020-01-04 23:44:24 +01:00
stage('Init') {
steps {
sh "rm -rf build/libs/"
sh "chmod +x gradlew"
}
}
2019-07-25 15:16:30 +02:00
2020-01-04 23:44:24 +01:00
stage ('Build') {
when {
branch '1.15'
}
steps {
sh "./gradlew clean build publish curseTools --refresh-dependencies --stacktrace"
2019-07-25 15:16:30 +02:00
2020-01-04 23:44:24 +01:00
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
}
}
}
}