Take the fuel daily build job out of the main jobs 81/5081/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 22 Dec 2015 14:20:54 +0000 (15:20 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 4 Jan 2016 09:41:22 +0000 (09:41 +0000)
Build should really not need to be driven by main jobs and work
independently, continuously producing ISOs for whoever out there
to consume.

This needs review from Fuel Project in order to make sure the build
process does not care whatever scenario we run and just builds all
the plugins by default and put them into ISO.

The trigger is set to poll fuel git repo every 6 hours and upload
ISOs to artifacts.opnfv.org upon successful completion of the build.

Change-Id: Id59e37407e219803925c146c811450fb6099031b
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/fuel/fuel-ci-jobs.yml
jjb/fuel/fuel-project-jobs.yml

index bcc3248..8882879 100644 (file)
@@ -53,7 +53,6 @@
 
     jobs:
         - 'fuel-{sdn-controller}-{pod}-daily-{stream}'
-        - 'fuel-build-{pod}-daily-{stream}'
         - 'fuel-deploy-{pod}-daily-{stream}'
 
 ########################
             branch: '{branch}'
 
     builders:
-        - multijob:
-            name: build
-            condition: SUCCESSFUL
-            projects:
-                - name: 'fuel-build-{pod}-daily-{stream}'
-                  git-revision: true
-                  kill-phase-on: FAILURE
         - multijob:
             name: deploy
             condition: SUCCESSFUL
                   current-parameters: true
                   kill-phase-on: NEVER
 
-- job-template:
-    name: 'fuel-build-{pod}-daily-{stream}'
-
-    concurrent: false
-
-    properties:
-        - throttle:
-            enabled: true
-            max-total: 1
-            max-per-node: 1
-
-    parameters:
-        - project-parameter:
-            project: '{project}'
-        - 'ericsson-ca-build-1-defaults'
-        - '{installer}-defaults'
-        - fuel-ci-parameter:
-            gs-pathname: '{gs-pathname}'
-
-    scm:
-        - git-scm:
-            credentials-id: '{ssh-credentials}'
-            refspec: ''
-            branch: '{branch}'
-
-    wrappers:
-        - timeout:
-            timeout: 360
-            fail: true
-
-    builders:
-        - shell:
-            !include-raw ./fuel-build.sh
-        - shell:
-            !include-raw ./fuel-upload-artifact.sh
-        - shell:
-            !include-raw ./fuel-workspace-cleanup.sh
-
-    publishers:
-        - email:
-            recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
-
 - job-template:
     name: 'fuel-deploy-{pod}-daily-{stream}'
 
index a55c785..50df1bd 100644 (file)
@@ -18,6 +18,7 @@
 #            gs-pathname: '/{stream}'
 
     jobs:
+        - 'fuel-build-daily-{stream}'
         - 'fuel-verify-build-{stream}'
         - 'fuel-merge-build-{stream}'
         - 'fuel-merge-deploy-virtual-{stream}'
 ########################
 # job templates
 ########################
+- job-template:
+    name: 'fuel-build-daily-{stream}'
+
+    concurrent: false
+
+    properties:
+        - throttle:
+            enabled: true
+            max-total: 1
+            max-per-node: 1
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - 'ericsson-ca-build-1-defaults'
+        - '{installer}-defaults'
+        - fuel-project-parameter:
+            gs-pathname: '{gs-pathname}'
+
+    scm:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: '{branch}'
+
+    triggers:
+        - pollscm: '0 H/6 * * *'
+
+    wrappers:
+        - timeout:
+            timeout: 360
+            fail: true
+
+    builders:
+        - shell:
+            !include-raw ./fuel-build.sh
+        - shell:
+            !include-raw ./fuel-upload-artifact.sh
+        - shell:
+            !include-raw ./fuel-workspace-cleanup.sh
+
+    publishers:
+        - email:
+            recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com
+
 - job-template:
     name: 'fuel-verify-build-{stream}'