Support BUILDONLY job parameter 43/18743/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 12 Dec 2018 14:13:35 +0000 (15:13 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 14 Dec 2018 13:18:12 +0000 (13:18 +0000)
to select just a single machine.

Change-Id: I76d884c800c7e130420e13b8d7d431803facfe7d
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-header.sh
jjb/release-jjb-flounder-snapshot/release-jjb-flounder-snapshot.yaml
jjb/release-jjb-guppy-snapshot/release-jjb-guppy-snapshot.yaml

index 946b2e9..091f9dd 100644 (file)
@@ -122,6 +122,16 @@ eval TARGETIMAGEnogfx="$TARGETIMAGEnogfx"
 # The 'real' machine name
 export TARGETMACHINE=${MACHINE}
 
+# bail out if we're not the 'BUILDONLY' machine
+if test -n "${BUILDONLY}" ; then
+    if test x"ignore" != x"${BUILDONLY}" ; then
+       if test x"${MACHINE}" != x"${BUILDONLY}" ; then
+           echo "Skipping ${MACHINE} as BUILDONLY is ${BUILDONLY}."
+           exit 1
+       fi
+    fi
+fi
+
 # The exceptions
 if $NOGFX; then
     export TARGETIMAGE=${TARGETIMAGEnogfx}
index 6c6e2bd..98e4658 100644 (file)
           name: UPLOAD
           default: yes_or_no
           description: "Upload?"
+      - string:
+          name: BUILDONLY
+          default: ignore
+          description: "build only specified machine"
     axes:
       - axis:
           type: user-defined
index 1818006..5686fb5 100644 (file)
           name: UPLOAD
           default: yes_or_no
           description: "Upload?"
+      - string:
+          name: BUILDONLY
+          default: ignore
+          description: "build only specified machine"
     axes:
       - axis:
           type: user-defined