MCProtocolLib/Jenkinsfile

29 lines
583 B
Text
Raw Normal View History

2021-11-13 14:52:39 -05:00
pipeline {
agent any
tools {
maven 'Maven 3'
jdk 'Java 8'
}
options {
buildDiscarder(logRotator(artifactNumToKeepStr: '20'))
}
stages {
stage ('Build') {
steps {
sh 'mvn clean package'
}
2023-03-09 16:38:07 -05:00
}
2023-03-14 08:16:03 -04:00
stage ('Javadocs') {
2023-03-09 16:38:07 -05:00
when {
branch "master"
}
2021-11-13 14:52:39 -05:00
steps {
2023-03-14 08:22:33 -04:00
sh 'mvn javadoc:javadoc'
step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])
2021-11-13 14:52:39 -05:00
}
}
}
2023-03-14 08:16:03 -04:00
}