mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 11:24:57 -05:00
27 lines
570 B
Groovy
27 lines
570 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: 'protocol/build/docs/javadoc', keepAll: false])
|
|
}
|
|
}
|
|
}
|
|
}
|