From e0f1427af730cfc67e5df6f21e47a6716dbf450d Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Fri, 19 Dec 2014 13:18:52 +0100 Subject: [PATCH] jenkins: create and update documentation in only one build configuration --- jenkins/cloudbees_build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jenkins/cloudbees_build b/jenkins/cloudbees_build index f3abe6f..3eaddc5 100644 --- a/jenkins/cloudbees_build +++ b/jenkins/cloudbees_build @@ -12,7 +12,10 @@ ########################################### # Determine EPICS Base version -BASE=${1:-3.14.12.4} +DEFAULT_BASE=3.14.12.4 + +BASE=${1:-${DEFAULT_BASE}} +[ "${1}" = ${DEFAULT_BASE} -o -z "${1}" ] && BUILD_DOCS=YES ########################################### # Fetch and unpack dependencies @@ -43,7 +46,7 @@ EPICS_BASE=${EPICS_BASE} EOF make distclean all -doxygen +[ "${BUILD_DOCS}" ] && doxygen ########################################### # Test @@ -59,4 +62,4 @@ tar czf pvData.CB-dist.tar.gz lib include COPYRIGHT LICENSE ########################################### # Publish documentation -rsync -aP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/pvDataCPP/tip +[ "${BUILD_DOCS}" ] && rsync -aqP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/pvDataCPP/tip