Update Jenkinsfile

This commit is contained in:
modmuss50 2020-01-04 22:44:24 +00:00 committed by GitHub
parent 525f956e0d
commit 1a851d1708
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

31
Jenkinsfile vendored
View file

@ -1,14 +1,23 @@
node {
stage 'Checkout'
pipeline {
agent any
stages {
checkout scm
stage('Init') {
steps {
sh "rm -rf build/libs/"
sh "chmod +x gradlew"
}
}
stage 'Build'
stage ('Build') {
when {
branch '1.15'
}
steps {
sh "./gradlew clean build publish curseTools --refresh-dependencies --stacktrace"
sh "chmod +x gradlew"
sh "./gradlew clean build publish curseTools --refresh-dependencies --stacktrace"
stage "Archive artifacts"
archive 'build/libs/*'
}
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
}
}
}
}