aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-update-next.sh
diff options
context:
space:
mode:
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