jenkins: adapt doc script to new CloudBees jenkins job

This commit is contained in:
Ralph Lange
2015-09-14 15:13:51 +02:00
parent 2bc01a482e
commit 8e97c2e8bd

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,10 @@ doxygen
###########################################
# Publish
rsync -aqP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/normativeTypesCPP/tip
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/normativeTypesCPP/${PUBLISH}/DUMMY
rsync -aqP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/normativeTypesCPP/${PUBLISH}/
fi