Skip to content

Commit 30d3bd6

Browse files
committed
MLE-27841 Generating javadocs on each publish
This simplifies life for the docs team by allowing them to download the zip of docs.
1 parent e5f10aa commit 30d3bd6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Jenkinsfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,22 @@ pipeline {
198198
./gradlew publish
199199
'''
200200
}
201+
post {
202+
always {
203+
sh label: 'generate-javadoc', script: '''#!/bin/bash
204+
export JAVA_HOME=$JAVA_HOME_DIR
205+
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
206+
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
207+
cd java-client-api
208+
./gradlew javadoc
209+
echo "Zipping javadocs for easy download..."
210+
cd marklogic-client-api/build/docs
211+
zip -r javadoc.zip javadoc/
212+
mv javadoc.zip $WORKSPACE/
213+
'''
214+
archiveArtifacts artifacts: 'javadoc.zip', fingerprint: true
215+
}
216+
}
201217
}
202218

203219
stage('regressions') {

0 commit comments

Comments
 (0)