mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
30 lines
853 B
Groovy
30 lines
853 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
gradle 'Gradle 7'
|
|
jdk 'Java 17'
|
|
}
|
|
options {
|
|
buildDiscarder(logRotator(artifactNumToKeepStr: '5'))
|
|
}
|
|
stages {
|
|
stage ('Build') {
|
|
steps {
|
|
sh 'git submodule update --init --recursive'
|
|
rtGradleRun(
|
|
usesPlugin: true,
|
|
tool: 'Gradle 7',
|
|
buildFile: 'build.gradle.kts',
|
|
tasks: 'clean spigot:build',
|
|
)
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar',
|
|
excludes: '**/floodgate-parent-*.jar,**/floodgate-api.jar,**/floodgate-core.jar',
|
|
fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |