Change-Id: I88a2f86f04dd2026be266d792ddb194cd1426e61
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jenkins-jobs update jjb/
# Submit patches for any jobs that can be auto updated
+function submitJJB {
+ git commit -asm "Update automated project templates"
+ git push origin HEAD:refs/for/master
+}
+
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 jenkins-releng@git.opendaylight.org:hooks/commit-msg ${gitdir}/hooks/
python scripts/jjb-autoupdate-project.py
-git commit -asm "Update automated project templates"
-git push origin HEAD:refs/for/master
+git diff --quiet --exit-code || submitJJB