aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-update-next.sh
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-04-07 23:36:04 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-04-07 23:37:10 +0200
commitca76aeca55f0fda97644eedef4b86e017209907c (patch)
tree5817f6396368ca83743f2ef36ab7fcfe120e275a /jjb/common/include-agl-update-next.sh
parent509d6162e743f6fcc36d34445bdb332acc103807 (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/include-agl-update-next.sh')
-rw-r--r--jjb/common/include-agl-update-next.sh19
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