jjb: Add new --device-tags argument 81/19781/3
authorKhouloud Touil <ktouil@baylibre.com>
Mon, 28 Jan 2019 09:58:11 +0000 (10:58 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 7 Feb 2019 12:58:51 +0000 (12:58 +0000)
This commit adds new --device-tags argument to the create_job process.
The create_job will use the device tags to create the job template.

Note, this commit will work only if the lavacli package is well configured.

Change-Id: Ib9358daaaa9ecfbb0c261991b0d86b48796eb701
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
jjb/common/include-agl-run-test-short.sh

index 903d953..eb28c47 100644 (file)
@@ -23,6 +23,7 @@ BUILD_VERSION="AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
 CREATE_ARGS+="--name AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER "
 CREATE_ARGS+="--build-version $BUILD_VERSION "
 CREATE_ARGS+="--callback-from ${LAVA_LAB} "
+[[ ! -z $lavacli_tags ]] && CREATE_ARGS+="--device-tags ${lavacli_tags} "
 $RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml
 
 if [ $? != 0 ]; then