Skip to content
Snippets Groups Projects
Commit 1d6f7263 authored by kaloyane's avatar kaloyane
Browse files

minor: auto-publish javadocs on http://svncisd.ethz.ch/doc/javadoc/ with the sprint build

SVN: 20375
parent ad3eec41
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ fi ...@@ -16,6 +16,8 @@ fi
FULL_VER=S$VER.$SUBVER FULL_VER=S$VER.$SUBVER
SPRINT_SERVER=sprint-openbis.ethz.ch SPRINT_SERVER=sprint-openbis.ethz.ch
SPRINT_INSTALL_SCRIPT=sprint_install.sh SPRINT_INSTALL_SCRIPT=sprint_install.sh
# this folder is publicly accessible at http://svncisd.ethz.ch/doc/javadoc/
JAVADOC_FOLDER=~/fileserver/doc/javadoc
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands # Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# unset EXECUTE_COMMANDS # unset EXECUTE_COMMANDS
...@@ -83,6 +85,24 @@ function copy_to_sprint_server { ...@@ -83,6 +85,24 @@ function copy_to_sprint_server {
state_end state_end
} }
function publish_javadocs {
state_start "Publishing javadocs ..."
if [ $EXECUTE_COMMANDS ]; then
pushd .
cp -R tmp/openbis_all/targets/dist/javadoc $JAVADOC_FOLDER/$FULL_VER
cd $JAVADOC_FOLDER
rm -f current
ln -s $FULL_VER current
popd
fi
state_end
}
function install_sprint { function install_sprint {
# If sprint install script is present and executable, run it! # If sprint install script is present and executable, run it!
if [ $EXECUTE_COMMANDS ]; then if [ $EXECUTE_COMMANDS ]; then
...@@ -105,6 +125,7 @@ setup ...@@ -105,6 +125,7 @@ setup
build build
copy_to_cisd_server copy_to_cisd_server
copy_to_sprint_server copy_to_sprint_server
publish_javadocs
install_sprint install_sprint
state_start Done! state_start Done!
...@@ -20,6 +20,8 @@ FULL_VER=S$VER.$SUBVER ...@@ -20,6 +20,8 @@ FULL_VER=S$VER.$SUBVER
SPRINT_SERVER=sprint-openbis.ethz.ch SPRINT_SERVER=sprint-openbis.ethz.ch
CISD_SERVER=cisd-vesuvio.ethz.ch CISD_SERVER=cisd-vesuvio.ethz.ch
SPRINT_INSTALL_SCRIPT=sprint_install.sh SPRINT_INSTALL_SCRIPT=sprint_install.sh
# this folder is publicly accessible at http://svncisd.ethz.ch/doc/javadoc/
JAVADOC_FOLDER=~/fileserver/doc/javadoc
# Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands # Unset this to do a dry-run (like rsync -n) and set it to actually execute the commands
# unset EXECUTE_COMMANDS # unset EXECUTE_COMMANDS
...@@ -96,6 +98,24 @@ function copy_to_sprint_server { ...@@ -96,6 +98,24 @@ function copy_to_sprint_server {
state_end state_end
} }
function publish_javadocs {
state_start "Publishing javadocs ..."
if [ $EXECUTE_COMMANDS ]; then
pushd .
cp -R tmp/openbis_all/targets/dist/javadoc $JAVADOC_FOLDER/$FULL_VER
cd $JAVADOC_FOLDER
rm -f current
ln -s $FULL_VER current
popd
fi
state_end
}
function install_sprint { function install_sprint {
# If sprint install script is present and executable, run it! # If sprint install script is present and executable, run it!
if [ $EXECUTE_COMMANDS ]; then if [ $EXECUTE_COMMANDS ]; then
...@@ -119,6 +139,7 @@ tag ...@@ -119,6 +139,7 @@ tag
build build
copy_to_cisd_server copy_to_cisd_server
copy_to_sprint_server copy_to_sprint_server
publish_javadocs
install_sprint install_sprint
state_start Done! state_start Done!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment