summaryrefslogtreecommitdiffstats
path: root/jjb/include-raw-jjb-update.sh
blob: 7855f7bc433cff464f10d7096e8dbae8170d5d1d (plain)
1
2
3
4
5
6
7
8
9
10
jenkins-jobs update --delete-old 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 rotterdam-jobbuilder@gerrit.projectrotterdam.info:hooks/commit-msg ${gitdir}/hooks/
git diff --exit-code || submitJJB