aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-app-run-test-short.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-03-10 13:41:08 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-03-10 13:48:34 +0000
commit49327a3679e3fad395fc42cff14691364290d568 (patch)
tree645808ae73006a1a00377bdc10492bed7ecb6c2d /jjb/common/include-agl-app-run-test-short.sh
parentf82cd14def7370b5be40f7bb5fb0d8206e0db1dd (diff)
SPEC-3414: generate BUILD_VERSION early
We will need to push build info before generating jobs. So first unify build version under an uniq variable name BUILD_VERSION. And generate this early. Bug-AGL: SPEC-3414 Change-Id: Ieba092b2c9d86f9b9feee45a02b553b6cf49fecf Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-app-run-test-short.sh')
-rw-r--r--jjb/common/include-agl-app-run-test-short.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/jjb/common/include-agl-app-run-test-short.sh b/jjb/common/include-agl-app-run-test-short.sh
index 239e2baf..e1bd6998 100644
--- a/jjb/common/include-agl-app-run-test-short.sh
+++ b/jjb/common/include-agl-app-run-test-short.sh
@@ -10,6 +10,9 @@
cd $REPODIR
+BUILD_VERSION="AGL-app-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
+[[ -e output/repo-manifest-r.txt.sha1 ]] && BUILD_VERSION+="-$(cat output/repo-manifest-r.txt.sha1)"
+
echo "# LAVA lab target: ${LAVA_LAB} #"
# releng-scripts depends on jinja2 >= 2.9
echo "## Check version of python-jinja2: "
@@ -34,12 +37,12 @@ CREATE_ARGS+="--build-type snapshot --branch master --version latest "
[[ ! -z $GERRIT_CHANGE_NUMBER ]] && CREATE_ARGS+="--app-changeid $GERRIT_CHANGE_NUMBER "
[[ ! -z $GERRIT_PATCHSET_NUMBER ]] && CREATE_ARGS+="--app-patchset $GERRIT_PATCHSET_NUMBER "
[[ ! -z $AGLBRANCH ]] && CREATE_ARGS+="--app-branch $AGLBRANCH "
-BUILD_VERSION="AGL-app-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
-[[ -e output/repo-manifest-r.txt.sha1 ]] && BUILD_VERSION+="-$(cat output/repo-manifest-r.txt.sha1)"
CREATE_ARGS+="--name AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER "
CREATE_ARGS+="--build-version $BUILD_VERSION "
CREATE_ARGS+="--callback-from ${LAVA_LAB} "
CREATE_ARGS+="--test application-lifecycle pyagl"
+
+echo "DEBUG: call create-jobs.py with $CREATE_ARGS"
$RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml
if [ $? != 0 ]; then