2021-11-13 14:52:39 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
tools {
|
2023-12-19 02:41:25 -05:00
|
|
|
jdk 'Java 17'
|
2021-11-13 14:52:39 -05:00
|
|
|
}
|
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(artifactNumToKeepStr: '20'))
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage ('Build') {
|
|
|
|
steps {
|
2023-12-19 13:01:53 -05:00
|
|
|
sh './gradlew clean build'
|
2021-11-13 14:52:39 -05:00
|
|
|
}
|
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-12-19 13:01:53 -05:00
|
|
|
sh './gradlew javadoc'
|
2024-05-13 22:29:24 -04:00
|
|
|
step([$class: 'JavadocArchiver', javadocDir: 'protocol/build/docs/javadoc', keepAll: false])
|
2021-11-13 14:52:39 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-14 08:16:03 -04:00
|
|
|
}
|