From 1ab24af7cf908216e0e3554f8fcf9626c32b25cf Mon Sep 17 00:00:00 2001 From: Sebastien Date: Wed, 28 Feb 2018 19:06:09 +0100 Subject: [PATCH 1/3] 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 From c5e6320bf63d8791258b5bf24dbd3503e178d2f2 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Wed, 28 Feb 2018 19:07:20 +0100 Subject: [PATCH 2/3] test --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1d15e48..1e65a86 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 .","-v build/:build/") + app = docker.build("brokenfire/brokendiscordbot","--rm=true .") } stage('Push image') { /* Finally, we'll push the image with two tags: From daae63f1794af9992ac9d65e23c7b05fef3efec4 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Wed, 28 Feb 2018 20:17:22 +0100 Subject: [PATCH 3/3] remove test --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e65a86..fbd958c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,9 +21,4 @@ node { stage('Cleaning'){ sh "docker image prune -f" } - stage('build Javadoc'){ - archiveJavadoc{ - javadocDir('build/docs/javadoc') - } - } } \ No newline at end of file