Enable daily jobs for fuel and foreman for release
[releng.git] / jjb / genesis / genesis-fuel.yml
index e9f279e..5c64425 100644 (file)
             refspec: ''
             branch: master
 
-    triggers:
-        - timed: '@midnight'
+#   triggers:
+#       - timed: 'H */6 * * *'
 
     logrotate:
         daysToKeep: 30
           - project: 'genesis-fuel-build'
             git-revision: true
             block: true
-        - trigger-builds:
-          - project: 'genesis-fuel-deploy-virtual'
-            git-revision: true
-            block: false
         - trigger-builds:
           - project: 'genesis-fuel-deploy'
             git-revision: true
 
     project-type: freestyle
 
-    disabled: false
+    disabled: true
 
     node: ericsson-build
 
             # list the build artifacts
             ls -al $BUILD_DIRECTORY
 
-            # list the contents of BUILD_OUTPUT directory
-            ls -al $BUILD_DIRECTORY
-
             # save information regarding artifact into file
             (
                 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
             # 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
 
             echo
 
             # start the deployment
-            echo "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_no-ha.yaml ${TOPDIR}/configs/lf_pod1/dha.yaml"
+            sudo TMPDIR=${TMPDIR} ${TOPDIR}/deploy/deploy.sh ${WORKSPACE}/opnfv.iso ${TOPDIR}/configs/lf_pod1/dea_no-ha.yaml ${TOPDIR}/configs/lf_pod1/dha.yaml
 
             echo
             echo "--------------------------------------------------------"