mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
27 lines
561 B
Groovy
27 lines
561 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
jdk 'Java 17'
|
|
}
|
|
options {
|
|
buildDiscarder(logRotator(artifactNumToKeepStr: '20'))
|
|
}
|
|
stages {
|
|
stage ('Build') {
|
|
steps {
|
|
sh './gradlew clean build'
|
|
}
|
|
}
|
|
|
|
stage ('Javadocs') {
|
|
when {
|
|
branch "master"
|
|
}
|
|
|
|
steps {
|
|
sh './gradlew javadoc'
|
|
step([$class: 'JavadocArchiver', javadocDir: 'build/docs/javadoc', keepAll: false])
|
|
}
|
|
}
|
|
}
|
|
}
|