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