Add req.txt description of JJB install reqs
[releng/builder.git] / jjb / include-raw-jjb-update.sh
1 source /opt/virtualenv/jenkins-job-builder/bin/activate
2 jenkins-jobs update --delete-old jjb/
3
4 # Submit patches for any jobs that can be auto updated
5 function submitJJB {
6     git commit -asm "Update automated project templates"
7     git push origin HEAD:refs/for/master
8 }
9
10 gitdir=$(git rev-parse --git-dir); scp -p -P 29418 jenkins-releng@git.opendaylight.org:hooks/commit-msg ${gitdir}/hooks/
11 python scripts/jjb-autoupdate-project.py
12 git diff --exit-code || submitJJB