Merge "Adding packetcable csit jobs to distribution tests"
[releng/builder.git] / jjb / include-raw-jjb-update.sh
1 jenkins-jobs update --recursive --delete-old jjb/
2
3 # Submit patches for any jobs that can be auto updated
4 function submitJJB {
5     git commit -asm "Update automated project templates"
6     git push origin HEAD:refs/for/master
7 }
8
9 gitdir=$(git rev-parse --git-dir); scp -p -P 29418 jenkins-releng@git.opendaylight.org:hooks/commit-msg ${gitdir}/hooks/
10 python scripts/jjb-autoupdate-project.py
11 git diff --exit-code || submitJJB