summaryrefslogtreecommitdiffstats
path: root/jjb/genesis
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-19 18:32:04 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-05-19 18:32:04 +0200
commitdd242a98d057a8c7bafa23451328686614e7a00b (patch)
tree8091742b204a8675eeccbad74d05e113a9ed511b /jjb/genesis
parent5ea2a9638c192024fc98d4d5c9258e3da5f6f304 (diff)
Fix tmpdir for fuel deployment job in Jenkins
JIRA: OCTO-3 Change-Id: I0fd77be308c579a5315a0c9f9d1de01e3d873cd1 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/genesis')
-rw-r--r--jjb/genesis/genesis-fuel.yml12
1 files changed, 11 insertions, 1 deletions
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 "--------------------------------------------------------"