mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-11 00:01:19 -05:00
28 lines
583 B
Groovy
28 lines
583 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
maven 'Maven 3'
|
|
jdk 'Java 8'
|
|
}
|
|
options {
|
|
buildDiscarder(logRotator(artifactNumToKeepStr: '20'))
|
|
}
|
|
stages {
|
|
stage ('Build') {
|
|
steps {
|
|
sh 'mvn clean package'
|
|
}
|
|
}
|
|
|
|
stage ('Javadocs') {
|
|
when {
|
|
branch "master"
|
|
}
|
|
|
|
steps {
|
|
sh 'mvn javadoc:javadoc'
|
|
step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])
|
|
}
|
|
}
|
|
}
|
|
}
|