Add the html5 image to the CI pipeline 32/24132/2
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 27 Feb 2020 13:20:23 +0000 (14:20 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 27 Feb 2020 22:07:30 +0000 (22:07 +0000)
Add a new job to the pipeline (qemux86-64 for now) to build-test the
html5 image.

Bug-AGL: SPEC-3108

.

Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I9ef99da8cc325e55bcf44c641acbce12d59015ac

jjb/ci-AGL-verify/ci-platform-jjb.yaml
jjb/common/include-agl-set-html5-image.sh [new file with mode: 0644]

index 108cc12..5c8d8cd 100644 (file)
               current-parameters: true
               abort-all-job: true
               kill-phase-on: FAILURE
+            - name: 'ci-platform-html5-{project}-verify-CIB-qemux86-64'
+              current-parameters: true
+              abort-all-job: true
+              kill-phase-on: FAILURE
       - multijob:
           name: CIB-{project}-devboards
           condition: SUCCESSFUL
 #          #regular-expression: "Unexpected termination of the channel"
 
 
+################################################################################
+################################################################################
+# html5-verify-CIB-{machine}  = build for machine
+################################################################################
+- job-template:
+    name: 'ci-platform-html5-{project}-verify-CIB-qemux86-64'
+    project-type: freestyle
+    concurrent: true
+    node: agl-test-slave
+    description: "Managed by JJB. Do not Edit. \
+                  <br>Build time graph:<br><img src='buildTimeGraph/png' />"
+    parameters:
+      - string:
+          name: GERRIT_PROJECT
+          default: 'AGL/{project}'
+          description: "Project to build"
+      - string:
+          name: GERRIT_BRANCH
+          default: master
+          description: "branch to build"
+      - string:
+          name: GERRIT_REFSPEC
+          default: refs/heads/master
+          description: "refspec to build"
+      - string:
+          name: GERRIT_CHANGE_NUMBER
+          default: "8313"
+          description: "change # to build"
+      - string:
+          name: GERRIT_PATCHSET_NUMBER
+          default: "2"
+          description: "patchset # to build"
+      - string:
+          name: MACHINE
+          default: 'qemux86-64'
+          description: "Machine to build"
+    build-discarder:
+      days-to-keep: 30
+      artifact-days-to-keep: -1
+      artifact-num-to-keep: 5
+    wrappers:
+      - agl-infra-wrappers:
+          build-timeout: '{build-timeout}'
+      - openstack:
+          single-use: true
+    builders:
+      - shell:
+          !include-raw-escape:
+          - ../common/include-agl-header.sh
+          - ../common/include-agl-repo.sh
+          - ../common/include-agl-set-html5-image.sh
+          - ../common/include-agl-source-aglsetup.sh
+          - ../common/include-agl-auto-conf.sh
+          - ../common/include-agl-limit-parallelism.sh
+          - ../common/include-agl-local-conf-DISTROFEATURES-AGLCI.sh
+          - ../common/include-agl-cat-auto-conf.sh
+          - ../common/include-agl-bitbake-image.sh
+      - conditional-step:
+          condition-kind: always
+          steps:
+            - shell:
+                !include-raw-escape:
+                - ../common/include-agl-get-cost.sh
+
+
 ################################################################################
 ################################################################################
 # -verify-CIB-finish-success = build succeeded, message to gerrit
diff --git a/jjb/common/include-agl-set-html5-image.sh b/jjb/common/include-agl-set-html5-image.sh
new file mode 100644 (file)
index 0000000..0796773
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de
+# License GPLv2
+#
+# debugging purposes
+set -e
+
+################################################################################
+## Header
+################################################################################
+
+
+export TARGETFEATURES="agl-profile-graphical-html5 agl-devel"
+export TARGETQA=""
+export TARGETIMAGE="agl-demo-platform-html5"
+
+eval TARGETIMAGE="$TARGETIMAGE"
+eval TARGETIMAGEnogfx="$TARGETIMAGE"
+
+#if $DEBUG; then
+set | grep ^TARGET || true
+set | grep ^GERRIT || true
+set | grep ^MACHINE || true
+#fi