mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-08 21:14:41 -04:00
Update to new pipeline style, only build on master
This commit is contained in:
parent
dc75d45c51
commit
0beca7f877
1 changed files with 16 additions and 13 deletions
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
|
@ -1,15 +1,18 @@
|
|||
node {
|
||||
stage 'Checkout'
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
|
||||
checkout scm
|
||||
stage ('Build') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh "rm -rf build/libs/"
|
||||
sh "chmod +x gradlew"
|
||||
sh "./gradlew build uploadArchives curseforge --refresh-dependencies --stacktrace"
|
||||
|
||||
stage 'Build'
|
||||
|
||||
sh "rm -rf build/libs/"
|
||||
sh "chmod +x gradlew"
|
||||
sh "./gradlew build uploadArchives curseforge --refresh-dependencies --stacktrace"
|
||||
|
||||
stage "Archive artifacts"
|
||||
|
||||
archive 'build/libs/*'
|
||||
}
|
||||
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue