diff --git a/Jenkinsfile b/Jenkinsfile index fbd958c..1d15e48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ node { /* This builds the actual image; synonymous to * 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') { /* Finally, we'll push the image with two tags: @@ -21,4 +21,9 @@ node { stage('Cleaning'){ sh "docker image prune -f" } + stage('build Javadoc'){ + archiveJavadoc{ + javadocDir('build/docs/javadoc') + } + } } \ No newline at end of file diff --git a/build.gradle b/build.gradle index 98878b5..0983c50 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,11 @@ repositories { jcenter() } +javadoc { + source = sourceSets.main.allJava + classpath = configurations.compile +} + sourceCompatibility = 1.8 targetCompatibility = 1.8