TechReborn/Jenkinsfile

24 lines
466 B
Text
Raw Normal View History

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