javadoc jenkins test

This commit is contained in:
Sebastien 2018-02-28 19:06:09 +01:00
parent af2c2d9632
commit 1ab24af7cf
2 changed files with 11 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ node {
/* This builds the actual image; synonymous to /* This builds the actual image; synonymous to
* docker build on the command line */ * docker build on the command line */
app = docker.build("brokenfire/brokendiscordbot","--rm=true .") app = docker.build("brokenfire/brokendiscordbot","--rm=true .","-v build/:build/")
} }
stage('Push image') { stage('Push image') {
/* Finally, we'll push the image with two tags: /* Finally, we'll push the image with two tags:
@ -21,4 +21,9 @@ node {
stage('Cleaning'){ stage('Cleaning'){
sh "docker image prune -f" sh "docker image prune -f"
} }
stage('build Javadoc'){
archiveJavadoc{
javadocDir('build/docs/javadoc')
}
}
} }

View File

@ -23,6 +23,11 @@ repositories {
jcenter() jcenter()
} }
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile
}
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8