From a5c835cfeb738ab9d9d8799049c66e8d29b84163 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Wed, 19 Jun 2013 10:59:29 +0200 Subject: [PATCH] jenkins: add CloudBees hgweb job to sync repo to SF webspace --- jenkins/cloudbees_hgweb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 jenkins/cloudbees_hgweb diff --git a/jenkins/cloudbees_hgweb b/jenkins/cloudbees_hgweb new file mode 100644 index 0000000..23e2fbc --- /dev/null +++ b/jenkins/cloudbees_hgweb @@ -0,0 +1,20 @@ +# pvData 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/pvDataCPP hgweb + +########################################### +# Sync into SF webspace + +rsync -aqP --delete -e ssh hgweb/.hg epics-jenkins@web.sourceforge.net:/home/project-web/epics-pvdata/repos/pvDataCPP