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 {
2020-02-12 19:36:01 +01:00
branch '1.16'
2020-01-04 23:44:24 +01:00
}
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
}
}
}
}