jenkins: change doc script to adapt to new CloudBees jobs

This commit is contained in:
Ralph Lange
2015-09-14 15:00:43 +02:00
parent b20fd4c5c5
commit 2bdb012709

View File

@ -10,11 +10,10 @@
# All rights reserved. Use is subject to license terms.
###########################################
# Determine EPICS Base version
# Set EPICS Base version and upload target
DEFAULT_BASE=3.14.12.5
BASE=${1:-${DEFAULT_BASE}}
BASE=3.15.2
PUBLISH=${1:-DONT}
###########################################
# Fetch and unpack dependencies
@ -43,4 +42,14 @@ doxygen
###########################################
# Publish
if [ "${PUBLISH}" != "DONT" ]; then
# Upload explicit dummy to ensure target directory exists
echo "Created by CloudBees Jenkins upload job. Should be deleted as part of the job." > DUMMY
rsync -q -e ssh DUMMY epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/pvDatabaseCPP/${PUBLISH}/DUMMY
rsync -aqP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/pvDatabaseCPP/${PUBLISH}/
fi
###########################################
# Publish
rsync -aqP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/pvDatabaseCPP/tip