Update Jenkinsfile
This commit is contained in:
parent
525f956e0d
commit
1a851d1708
1 changed files with 20 additions and 11 deletions
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
|
@ -1,14 +1,23 @@
|
||||||
node {
|
pipeline {
|
||||||
stage 'Checkout'
|
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"
|
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
|
||||||
sh "./gradlew clean build publish curseTools --refresh-dependencies --stacktrace"
|
}
|
||||||
|
}
|
||||||
stage "Archive artifacts"
|
}
|
||||||
|
}
|
||||||
archive 'build/libs/*'
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue