diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-04-08 15:47:34 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-04-16 12:16:43 +0200 |
commit | 8bce3b487bf54015d10b73658d07c02c8a204f68 (patch) | |
tree | 2ef50146687bd48ee884c806f30a260145e1aed7 /jjb/common | |
parent | 84f0eb5dd32b0951c7977f77cd75fdc48469553b (diff) |
SPEC-1850: Implement CIBT for applications build
This commit enable CIBT for applications.
For keeping the same naming for GERRIT_PATCHSET_NUMBER and
GERRIT_CHANGEID_NUMBER and use of the new releng-scripts app-changeid/app-patchset,
we use a new jjb/common/include-agl-app-run-test-short.sh
Change-Id: Ic2a93327236b932ae43125a172237a3882f4569e
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-agl-app-run-test-short.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/jjb/common/include-agl-app-run-test-short.sh b/jjb/common/include-agl-app-run-test-short.sh new file mode 100644 index 00000000..e26cb604 --- /dev/null +++ b/jjb/common/include-agl-app-run-test-short.sh @@ -0,0 +1,48 @@ +# (c) 2019 Corentin Labbe clabbe(at)baylibre.com +# License GPLv2 +# Copied from jjb/common/include-agl-run-test-short.sh + +################################################################################ +## Run SHORT CI test +################################################################################ + +set -x + +cd $REPODIR + +echo "# LAVA lab target: ${LAVA_LAB} #" +# releng-scripts depends on jinja2 >= 2.9 +echo "## Check version of python-jinja2: " +pip show jinja2 +CREATE_ARGS="" +case $TARGETARCH in +arm) +CREATE_ARGS+="--machine qemuarm " +;; +x86_64) +CREATE_ARGS+="--machine qemux86_64 " +;; +aarch64) +CREATE_ARGS+="--machine qemuarm64 " +;; +*) + echo "ERROR: unknown architecture $TARGETARCH" + exit 1 +;; +esac +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 " +BUILD_VERSION="AGL-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} " +$RELENG/utils/create-jobs.py ${CREATE_ARGS} > testjob.yaml + +if [ $? != 0 ]; then + echo "ERROR: Machine ${releng_device}: LAVA job creation failed." + exit 0 +else + cat testjob.yaml +fi |