SPEC-1850: give the branch used to releng-scripts 27/21327/1
authorCorentin LABBE <clabbe@baylibre.com>
Thu, 16 May 2019 09:06:46 +0000 (11:06 +0200)
committerCorentin LABBE <clabbe@baylibre.com>
Thu, 16 May 2019 09:07:49 +0000 (11:07 +0200)
I have assumed that only master is used for appfw but it is false.
Some app review are done against non-master branch.

This patch give to releng-script the branch used via --app-branch.

Change-Id: Ia2e15aef7d624c81974b7830c0bbd3623f5b7c42
Bug-AGL: SPEC-1850
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
jjb/common/include-agl-app-run-test-short.sh

index 1ff4935..7a8f59e 100644 (file)
@@ -33,6 +33,7 @@ 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 "
+[[ ! -z $AGLBRANCH ]] && CREATE_ARGS+="--app-branch $AGLBRANCH "
 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 "