aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/ci-management/include-raw-jjb-update.sh
blob: 0a87bac6689ff4071dedf3f2563b325182554866 (plain)
1
2
3
4
5
6
7
8
9
10
jenkins-jobs update --delete-old --recursive 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 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p -P 29418 agl-jobbuilder@gerrit.automotivelinux.org:hooks/commit-msg ${gitdir}/hooks/
git diff --exit-code || submitJJB