diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-04-07 23:36:04 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-04-07 23:37:10 +0200 |
commit | ca76aeca55f0fda97644eedef4b86e017209907c (patch) | |
tree | 5817f6396368ca83743f2ef36ab7fcfe120e275a /jjb/common | |
parent | 509d6162e743f6fcc36d34445bdb332acc103807 (diff) |
Add automatic update of next branch
After a merge we need to rebase our -next branch to be
synced with master.
Bug-AGL: SPEC-3846
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I9881589ec192ccf1668e692ea9d4e1eb6476d418
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-agl-update-next.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/jjb/common/include-agl-update-next.sh b/jjb/common/include-agl-update-next.sh new file mode 100644 index 00000000..266f9bc1 --- /dev/null +++ b/jjb/common/include-agl-update-next.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# safety net +if test x"master" = x"${TARGETBRANCH}" ; then + pushd $MYPROJECT + git config --local --add gitreview.username agl-jobbuilder + git config --local --add user.email collab-it+agl-jobbuilder@linuxfoundation.org + pip3 install git-review + export PATH=/home/jenkins/.local/bin:$PATH + git review -s + git remote -v update + git checkout -b next gerrit/next + git rebase gerrit/master + git push -f gerrit HEAD:next -f + popd +fi + +cd .. +rm -rf repoclone |