From 1ab24af7cf908216e0e3554f8fcf9626c32b25cf Mon Sep 17 00:00:00 2001 From: Sebastien Date: Wed, 28 Feb 2018 19:06:09 +0100 Subject: [PATCH] javadoc jenkins test --- Jenkinsfile | 7 ++++++- build.gradle | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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