Browse Source

Auto-Publish

master 1.2.9+1.16.4
TheBrokenRail 6 months ago
parent
commit
5381263113
  1. 14
      Jenkinsfile

14
Jenkinsfile

@ -7,7 +7,7 @@ pipeline {
stages {
stage('Build') {
steps {
sh './gradlew build javadoc publish'
sh './gradlew build javadoc'
}
post {
success {
@ -24,5 +24,17 @@ pipeline {
}
}
}
stage('Publish') {
when {
expression {
return sh(returnStdout: true, script: 'git tag --contains').trim().length() > 0
}
}
steps {
withCredentials([string(credentialsId: 'curseforge_key', variable: 'CURSEFORGE_KEY')]) {
sh './gradlew -Pcurseforge.api_key="${CURSEFORGE_KEY}" curseforge publish'
}
}
}
}
}
Loading…
Cancel
Save