This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-19 19:45:46 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'openjdk:8-jdk'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh './gradlew build'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
archiveArtifacts artifacts: 'build/libs/*', fingerprint: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-24 22:08:54 +00:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 19:45:46 +00:00
|
|
|
}
|
|
|
|
}
|