aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/ci-management/include-raw-jjb-update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/ci-management/include-raw-jjb-update.sh')
-rw-r--r--jjb/ci-management/include-raw-jjb-update.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/jjb/ci-management/include-raw-jjb-update.sh b/jjb/ci-management/include-raw-jjb-update.sh
new file mode 100644
index 00000000..aca40dc6
--- /dev/null
+++ b/jjb/ci-management/include-raw-jjb-update.sh
@@ -0,0 +1,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 -p -P 39418 agl-jobbuilder@gerrit.automotievlinux.org.org:hooks/commit-msg ${gitdir}/hooks/
+git diff --exit-code || submitJJB