Use the new --commit argument 71/20371/1
authorKhouloud Touil <ktouil@baylibre.com>
Wed, 27 Feb 2019 13:10:03 +0000 (14:10 +0100)
committerKhouloud Touil <ktouil@baylibre.com>
Wed, 27 Feb 2019 13:10:03 +0000 (14:10 +0100)
This patch uses a new --commit argument that will contain the
DIST_BUILD_HASH value that is extracted from the build-info
file. These changes are in both files 'include-agl-run-test
-short-guppy.sh' and 'include-agl-run-test-short.sh'.

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

index d6a6076..6852600 100644 (file)
@@ -22,6 +22,7 @@ CREATE_ARGS+="--build-type release "
 CREATE_ARGS+="--url https://download.automotivelinux.org/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/${MACHINE}/deploy/images/${TARGETMACHINE}/ "
 CREATE_ARGS+="--name AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION "
 [[ ! -z $DIST_BB_DISTRO_VERSION ]] && CREATE_ARGS+="--build-version $DIST_BB_DISTRO_VERSION "
+[[ ! -z $DIST_BUILD_HASH ]] && CREATE_ARGS+="--commit $DIST_BUILD_HASH "
 CREATE_ARGS+="--callback-from ${LAVA_LAB} "
 $RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml
 
index 0598d9e..7ebc91e 100644 (file)
@@ -23,6 +23,7 @@ CREATE_ARGS+="--build-type ci "
 [[ ! -z $GERRIT_PATCHSET_NUMBER ]] && CREATE_ARGS+="--patchset $GERRIT_PATCHSET_NUMBER "
 CREATE_ARGS+="--name AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER "
 [[ ! -z $DIST_BB_DISTRO_VERSION ]] && CREATE_ARGS+="--build-version $DIST_BB_DISTRO_VERSION "
+[[ ! -z $DIST_BUILD_HASH ]] && CREATE_ARGS+="--commit $DIST_BUILD_HASH "
 CREATE_ARGS+="--callback-from ${LAVA_LAB} "
 if [[ ! -z $lavacli_tags ]] && [[ $MACHINE =~ "-nogfx" ]]; then
        CREATE_ARGS+="--device-tags ${lavacli_tags} "