From dd242a98d057a8c7bafa23451328686614e7a00b Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Tue, 19 May 2015 18:32:04 +0200 Subject: Fix tmpdir for fuel deployment job in Jenkins JIRA: OCTO-3 Change-Id: I0fd77be308c579a5315a0c9f9d1de01e3d873cd1 Signed-off-by: Fatih Degirmenci --- jjb/genesis/genesis-fuel.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/genesis/genesis-fuel.yml b/jjb/genesis/genesis-fuel.yml index 909dc1b05..3d659f7d6 100644 --- a/jjb/genesis/genesis-fuel.yml +++ b/jjb/genesis/genesis-fuel.yml @@ -382,6 +382,14 @@ # echo the info about artifact that is used during the deployment echo "Using $(echo $OPNFV_ARTIFACT_URL | cut -d'/' -f4) for deployment" + # create TMPDIR if it doesn't exist + export TMPDIR=$HOME/tmpdir + [[ -d $TMPDIR ]] || mkdir -p $TMPDIR + + # change permissions down to TMPDIR + chmod a+x $HOME + chmod a+x $TMPDIR + # set TOPDIR export TOPDIR=$WORKSPACE/fuel/prototypes/auto-deploy @@ -391,7 +399,9 @@ echo # start the deployment - sudo ${TOPDIR}/deploy/deploy.sh $WORKSPACE/opnfv.iso ${TOPDIR}/configs/lf_pod1/dea.yaml ${TOPDIR}/configs/lf_pod1/dha.yaml + echo "Issuing command" + echo "sudo TMPDIR=${TMPDIR} ${TOPDIR}/deploy/deploy.sh ${WORKSPACE}/opnfv.iso ${TOPDIR}/configs/lf_pod1/dea.yaml ${TOPDIR}/configs/lf_pod1/dha.yaml" + sudo TMPDIR=${TMPDIR} ${TOPDIR}/deploy/deploy.sh ${WORKSPACE}/opnfv.iso ${TOPDIR}/configs/lf_pod1/dea.yaml ${TOPDIR}/configs/lf_pod1/dha.yaml echo echo "--------------------------------------------------------" -- cgit 1.2.3-korg