2022-04-07 04:14:44 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2022-04-07 05:25:03 +00:00
|
|
|
stage("build") {
|
2022-04-07 04:14:44 +00:00
|
|
|
steps {
|
2022-04-07 05:05:15 +00:00
|
|
|
withGradle {
|
2022-04-07 05:25:03 +00:00
|
|
|
sh "./gradlew build javadoc publish --no-daemon"
|
2022-04-07 05:05:15 +00:00
|
|
|
}
|
2022-04-07 04:14:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2022-04-07 05:25:03 +00:00
|
|
|
archiveArtifacts artifacts: "build/libs/*.jar", fingerprint: true
|
2022-04-07 05:26:24 +00:00
|
|
|
javadoc javadocDir "build/docs/javadoc" {
|
2022-04-07 05:25:03 +00:00
|
|
|
javadoc keepAll false
|
|
|
|
}
|
2022-04-07 05:01:06 +00:00
|
|
|
discordSend description: "Jenkins", link: env.BUILD_URL, result: currentBuild.currentResult, title: JOB_NAME, webhookURL: env.PLEX_WEBHOOK_URL
|
2022-04-07 04:14:44 +00:00
|
|
|
deleteWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|