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>
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