diff --git a/jenkins/cloudbees_build b/jenkins/cloudbees_build new file mode 100644 index 0000000..47329fd --- /dev/null +++ b/jenkins/cloudbees_build @@ -0,0 +1,65 @@ +# normativeTypes C++ implementation +# Jenkins @ Cloudbees build script +# +# Jenkins invokes scripts with the "-ex" option. So the build is considered a failure +# if any of the commands exits with a non-zero exit code. +# +# Author: Ralph Lange +# Copyright (C) 2013 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH +# Copyright (C) 2014 ITER Organization. +# All rights reserved. Use is subject to license terms. + +########################################### +# Determine EPICS Base version + +BASE=${1:-3.14.12.4} + +########################################### +# Fetch and unpack dependencies + +export STUFF=/tmp/stuff + +rm -fr ${STUFF} +mkdir -p ${STUFF} +cd ${STUFF} + +wget -nv https://openepics.ci.cloudbees.com/job/Base-${BASE}_Build/lastSuccessfulBuild/artifact/base-${BASE}.CB-dist.tar.gz +wget -nv https://openepics.ci.cloudbees.com/job/Doxygen-1.8.3_Build/lastSuccessfulBuild/artifact/doxygen-1.8.3.CB-dist.tar.gz +wget -nv https://openepics.ci.cloudbees.com/job/pvCommonCPP_Build/BASE=${BASE}/lastSuccessfulBuild/artifact/pvCommon.CB-dist.tar.gz +wget -nv https://openepics.ci.cloudbees.com/job/pvDataCPP_Build/BASE=${BASE}/lastSuccessfulBuild/artifact/pvData.CB-dist.tar.gz +tar -xzf base-${BASE}.CB-dist.tar.gz +tar -xzf doxygen-1.8.3.CB-dist.tar.gz +tar -xzf pvCommon.CB-dist.tar.gz +tar -xzf pvData.CB-dist.tar.gz + +########################################### +# Build + +cd ${WORKSPACE} + +export EPICS_BASE=${STUFF} +export EPICS_HOST_ARCH=$(${EPICS_BASE}/startup/EpicsHostArch) +export LD_LIBRARY_PATH=${EPICS_BASE}/lib/${EPICS_HOST_ARCH} +export PATH=${STUFF}/bin:${PATH} + +cat > configure/RELEASE.local << EOF +EPICS_BASE=${EPICS_BASE} +EOF + +make distclean all +doxygen + +########################################### +# Test + +make runtests + +########################################### +# Create distribution + +tar --exclude=test* -czf normativeTypes.CB-dist.tar.gz bin lib include dbd + +########################################### +# Publish documentation + +rsync -aP --delete -e ssh documentation epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/htdocs/docbuild/normativeTypesCPP/tip diff --git a/jenkins/cloudbees_hgweb b/jenkins/cloudbees_hgweb new file mode 100644 index 0000000..a3185a8 --- /dev/null +++ b/jenkins/cloudbees_hgweb @@ -0,0 +1,20 @@ +# normativeTypes C++ implementation +# Jenkins @ Cloudbees hgweb sync script +# +# Jenkins invokes scripts with the "-ex" option. So the build is considered a failure +# if any of the commands exits with a non-zero exit code. +# +# Author: Ralph Lange +# Copyright (C) 2013 Helmholtz-Zentrum Berlin für Materialien und Energie GmbH +# All rights reserved. Use is subject to license terms. + +########################################### +# Fetch complete repo + +rm -fr hgweb +hg clone -U http://hg.code.sf.net/p/epics-pvdata/normativeTypesCPP hgweb + +########################################### +# Sync into SF webspace + +rsync -aqP --delete --exclude=\.hg/hgrc -e ssh hgweb/.hg epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/repos/normativeTypesCPP