From 9033b1c051abfde344847fc20a93a1a75fde21c0 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 25 Aug 2018 00:42:54 -0400 Subject: [PATCH] Prepare Javadoc deployment --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f8f1e9f51..637738676 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ pipeline { agent { docker { image 'velocitypowered/openjdk8-plus-git:slim' - args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw' + args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw -v javadoc:/javadoc' } } @@ -23,5 +23,10 @@ pipeline { sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish' } } + stage('Deploy Javadoc') { + steps { + sh 'rsync -av ./api/build/docs/javadoc/ /javadoc' + } + } } } \ No newline at end of file