This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
EnergonRelics/Jenkinsfile

37 lines
916 B
Plaintext
Raw Normal View History

2020-07-13 20:46:44 +00:00
pipeline {
agent {
docker {
2020-08-04 17:25:49 +00:00
image 'openjdk:11-jdk'
2020-07-13 20:46:44 +00:00
}
}
stages {
stage('Build') {
steps {
2020-08-07 21:34:55 +00:00
sh './gradlew build javadoc'
2020-07-13 20:46:44 +00:00
}
post {
success {
archiveArtifacts artifacts: 'build/libs/*', fingerprint: true
2020-08-04 17:06:11 +00:00
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'build/docs/javadoc',
reportFiles: 'index.html',
reportName: 'JavaDoc'
]
2020-07-13 20:46:44 +00:00
}
}
}
2020-08-07 21:34:55 +00:00
stage('Publish') {
when {
buildingTag()
}
steps {
sh './gradlew publish'
}
}
2020-07-13 20:46:44 +00:00
}
}