Enable mail notification for fuel-build and fuel-deploy jobs
[releng.git] / jjb / genesis / genesis-fuel.yml
index 56c9f70..3cb71f5 100644 (file)
     installer: 'fuel'
 
     jobs:
-        - 'genesis-fuel-verify-{stream}'
+        - 'genesis-fuel-verify-build-{stream}'
         - 'genesis-fuel-merge-{stream}'
         - 'genesis-fuel-daily-{stream}'
         - 'genesis-fuel-build-{stream}'
         - 'genesis-fuel-deploy-{stream}'
         - 'genesis-fuel-deploy-runner-{stream}'
         - 'genesis-fuel-lab-reconfig-{stream}'
-        - 'genesis-fuel-deploy-virtual-{stream}'
+        - 'genesis-fuel-verify-deploy-virtual-{stream}'
 
     # stream:    branch with - in place of / (eg. stable-arno)
     # branch:    branch (eg. stable/arno)
@@ -34,7 +34,7 @@
 ########################
 
 - job-template:
-    name: 'genesis-fuel-verify-{stream}'
+    name: 'genesis-fuel-verify-build-{stream}'
 
     project-type: freestyle
 
 
     node: ericsson-build
 
-    disabled: true
+    disabled: false
 
     triggers:
         - 'fuel-{stream}'
             git-revision: true
             block: true
         - trigger-builds:
-          - project: 'functest-opnfv-jump-1'
+          - project: 'functest-fuel-{stream}'
             block: true
+            block-thresholds:
+                build-step-failure-threshold: 'never'
+                failure-threshold: 'never'
+                unstable-threshold: 'FAILURE'
         - trigger-builds:
-          - project: 'yardstick-opnfv-jump-1'
+          - project: 'yardstick-fuel-{stream}'
             block: true
+            block-thresholds:
+                build-step-failure-threshold: 'never'
+                failure-threshold: 'never'
+                unstable-threshold: 'FAILURE'
 
 - job-template:
     name: 'genesis-fuel-deploy-runner-{stream}'
         - 'fuel-upload-artifact'
         - 'fuel-workspace-cleanup'
 
+    publishers:
+        - email:
+            recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
+
 - job-template:
     name: 'genesis-fuel-deploy-{stream}'
 
         - 'fuel-download-artifact'
         - 'fuel-deploy'
 
+    publishers:
+        - email:
+            recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
+
 - job-template:
     name: 'genesis-fuel-lab-reconfig-{stream}'
 
         - 'fuel-lab-reconfig'
 
 - job-template:
-    name: 'genesis-fuel-deploy-virtual-{stream}'
+    name: 'genesis-fuel-verify-deploy-virtual-{stream}'
 
     project-type: freestyle
 
             chmod a+x $TMPDIR
 
             # set CONFDIR, BRIDGE
-            export CONFDIR=$WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/pod2/ha
+            export CONFDIR=$WORKSPACE/fuel/deploy/templates/hardware_environment/old_conf/linux_foundation_lab/pod2/ha
             export BRIDGE=pxebr
 
             # cleanup first
 
             # start the deployment
             echo "Issuing command"
-            echo "sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE"
-            sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE
+            echo "sudo $WORKSPACE/fuel/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE"
+            sudo $WORKSPACE/fuel/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE
 
             echo
             echo "--------------------------------------------------------"
             done
 
             if [ "$ping_flag" -eq 1 ]; then
-              echo "Slave is pingable, now wait 90 seconds for services to start"
-              sleep 90
+              echo "Slave is pingable, now wait 180 seconds for services to start"
+              sleep 180
             else
               echo "Slave did not come back up after reboot: please check opnfv-jump-2"
               exit 1
 - trigger:
     name: 'fuel-master'
     triggers:
-        - timed: '0 5 * * *'
+        - timed: '0 3 * * *'
 
 - trigger:
     name: 'fuel-stable-arno'
     triggers:
-        - timed: '0 9 * * *'
+        - timed: '0 7 * * *'