Per branch app build 55/11055/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 27 Sep 2017 19:26:16 +0000 (21:26 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 27 Sep 2017 19:26:39 +0000 (21:26 +0200)
Thie change introduces app builds per apps/* repo branch.
E.g. master and dab branch are separately tracked and built.

Preparation of the app folder.

Change-Id: I5f15b68e072c6abc69dfd41197ad2052ed8aed4e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/ci-apps-verify/ci-apps-jjb.yaml

index c31eb76..fa412d1 100644 (file)
       - settings-bluetooth
       - settings-wifi
     jobs:
-      - ci-apps-{project}-verify
+      - ci-apps-{project}-verify-{aglbranch}
       - ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}
-      - ci-apps-{project}-verify-CIB-finish-success
-      - ci-apps-{project}-verify-failure
-      - ci-apps-{project}-remove-artifacts
+      - ci-apps-{project}-verify-{aglbranch}-CIB-finish-success
+      - ci-apps-{project}-verify-{aglbranch}-failure
+      - ci-apps-{project}-remove-{aglbranch}-artifacts
       # - ci-apps-{project}-verify-CIB-start
       # - ci-apps-{project}-verify-CIBT-start
       #- ci-apps-{project}-verify-CIBT-{architecture}
@@ -54,7 +54,7 @@
 # ci-apps-{project}-verify  =  trigger from gerrit and control job
 ################################################################################
 - job-template:
-    name: 'ci-apps-{project}-verify'
+    name: 'ci-apps-{project}-verify-{aglbranch}'
     project-type: multijob
     concurrent: true
     node: control-slave
           description: "Project to build"
       - string:
           name: GERRIT_BRANCH
-          default: master
+          default: '{aglbranch}'
           description: "branch to build"
       - string:
           name: GERRIT_REFSPEC
-          default: refs/heads/master
+          default: 'refs/heads/{aglbranch}'
           description: "refspec to build"
       - string:
           name: GERRIT_CHANGE_NUMBER
@@ -81,7 +81,7 @@
           description: "patchset # to build"
       - string:
           name: AGLBRANCH
-          default: 'master'
+          default: '{aglbranch}'
           description: "AGL release branch to use"
     build-discarder:
       days-to-keep: 30
@@ -90,7 +90,7 @@
     triggers:
       - gerrit-trigger-patch-submitted-manual-verified:
           name: 'apps/{project}'
-          branch: '**/**/**'
+          branch: 'refs/heads/{aglbranch}'
           silent: 'true'
     wrappers:
       - agl-infra-wrappers:
           name: CIB-{project}
           condition: SUCCESSFUL
           projects:
-            - name: 'ci-apps-{project}-verify-master-CIB-arm'
+            - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-arm'
               current-parameters: true
               #abort-all-job: true
               kill-phase-on: FAILURE
-              predefined-parameters: AGLBRANCH=master
-            - name: 'ci-apps-{project}-verify-master-CIB-aarch64'
+              predefined-parameters: AGLBRANCH={aglbranch}
+            - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-aarch64'
               current-parameters: true
               #abort-all-job: true
               kill-phase-on: FAILURE
-              predefined-parameters: AGLBRANCH=master
-            - name: 'ci-apps-{project}-verify-master-CIB-x86-64'
+              predefined-parameters: AGLBRANCH={aglbranch}
+            - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-x86-64'
               current-parameters: true
               #abort-all-job: true
               kill-phase-on: FAILURE
-              predefined-parameters: AGLBRANCH=master
-            #- name: 'ci-apps-{project}-verify-dab-CIB-arm'
-            #  current-parameters: true
-            #  #abort-all-job: true
-            #  kill-phase-on: FAILURE
-            #  predefined-parameters: AGLBRANCH=dab
-            #- name: 'ci-apps-{project}-verify-dab-CIB-aarch64'  # does not exist in dab
-            #  current-parameters: true
-            #  #abort-all-job: true
-            #  kill-phase-on: FAILURE
-            #- name: 'ci-apps-{project}-verify-dab-CIB-x86-64'
-            #  current-parameters: true
-            #  #abort-all-job: true
-            #  kill-phase-on: FAILURE
-            #  predefined-parameters: AGLBRANCH=dab
+              predefined-parameters: AGLBRANCH={aglbranch}
       - multijob:
-          name: CIB-{project}-finish-success
+          name: CIB-{project}-{aglbranch}-finish-success
           condition: SUCCESSFUL
           projects:
-            - name: 'ci-apps-{project}-verify-CIB-finish-success'
+            - name: 'ci-apps-{project}-verify-{aglbranch}-CIB-finish-success'
               current-parameters: true
               abort-all-job: true
               kill-phase-on: FAILURE
           description: "Project to build"
       - string:
           name: GERRIT_BRANCH
-          default: master
+          default: '{aglbranch}'
           description: "branch to build"
       - string:
           name: GERRIT_REFSPEC
-          default: refs/heads/master
+          default: refs/heads/{aglbranch}
           description: "refspec to build"
       - string:
           name: GERRIT_CHANGE_NUMBER
 # ci-apps-{project}-verify-CIB-finish-succcess  =  success, msg to gerrit
 ################################################################################
 - job-template:
-    name: 'ci-apps-{project}-verify-CIB-finish-success'
+    name: 'ci-apps-{project}-verify-{aglbranch}-CIB-finish-success'
     project-type: freestyle
     concurrent: true
     node: control-slave
           description: "Project to build"
       - string:
           name: GERRIT_BRANCH
-          default: master
+          default: '{aglbranch}'
           description: "branch to build"
       - string:
           name: GERRIT_REFSPEC
-          default: refs/heads/master
+          default: 'refs/heads/{aglbranch}'
           description: "refspec to build"
       - string:
           name: GERRIT_CHANGE_NUMBER
           name: GERRIT_PATCHSET_NUMBER
           default: "2"
           description: "patchset # to build"
+      - string:
+          name: AGLBRANCH
+          default: '{aglbranch}'
+          description: "AGL release branch to use"
     build-discarder:
       days-to-keep: 30
       artifact-days-to-keep: -1
 # ci-apps-{project}-verify-failure  =  message back to gerrit on failure
 ################################################################################
 - job-template:
-    name: 'ci-apps-{project}-verify-failure'
+    name: 'ci-apps-{project}-verify-{aglbranch}-failure'
     project-type: freestyle
     concurrent: true
     node: control-slave
           description: "Project to build"
       - string:
           name: GERRIT_BRANCH
-          default: master
+          default: '{aglbranch}'
           description: "branch to build"
       - string:
           name: GERRIT_REFSPEC
-          default: refs/heads/master
+          default: refs/heads/{aglbranch}
           description: "refspec to build"
       - string:
           name: GERRIT_CHANGE_NUMBER
 # -remove-artifacts = merge/abandon, remove artifacts and later trigger sstate
 ################################################################################
 - job-template:
-    name: 'ci-apps-{project}-remove-artifacts'
+    name: 'ci-apps-{project}-remove-{aglbranch}-artifacts'
     project-type: freestyle
     concurrent: true
     node: control-slave
           description: "Project to build"
       - string:
           name: GERRIT_BRANCH
-          default: master
+          default: '{aglbranch}'
           description: "branch to build"
       - string:
           name: GERRIT_REFSPEC
-          default: refs/heads/master
+          default: refs/heads/{aglbranch}
           description: "refspec to build"
       - string:
           name: GERRIT_CHANGE_NUMBER
     triggers:
       - gerrit-trigger-silent-patch-merged-abandoned:
           name: 'apps/{project}'
-          branch: '**/**/**'
+          branch: 'refs/heads/{aglbranch}'
     builders:
       - shell:
           !include-raw-escape: