Install githooks to automatically add Change-Id 80/13280/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 1 Dec 2014 18:47:16 +0000 (13:47 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 1 Dec 2014 18:58:10 +0000 (13:58 -0500)
Change-Id: I4dbc21e4c9d4f3617bece4bbfb9f22877b631854
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/include-raw-jjb-update.sh [new file with mode: 0644]
jjb/releng-jobs.yaml

diff --git a/jjb/include-raw-jjb-update.sh b/jjb/include-raw-jjb-update.sh
new file mode 100644 (file)
index 0000000..e16f1db
--- /dev/null
@@ -0,0 +1,8 @@
+source /opt/virtualenv/jenkins-job-builder/bin/activate
+jenkins-jobs update jjb/
+
+# Submit patches for any jobs that can be auto updated
+gitdir=$(git rev-parse --git-dir); scp -p -P 29418 jenkins-releng@git.opendaylight.org:hooks/commit-msg ${gitdir}/hooks/
+python scripts/jjb-autoupdate-project.py
+git commit -asm "Update automated project templates"
+git push origin HEAD:refs/for/master
index b7598b2aab19f27a2e3f3ca23e4039013537d813..e269b36661ecdf13069c81c9c28078f38b5e370a 100644 (file)
                       pattern: jjb/**
 
     builders:
-        - shell: |
-            source /opt/virtualenv/jenkins-job-builder/bin/activate
-            jenkins-jobs update jjb/
-
-            # Submit patches for any jobs that can be auto updated
-            python scripts/jjb-autoupdate-project.py
-            git commit -asm "Update automated project templates"
-            git push origin HEAD:refs/for/master
+        - shell:
+            !include-raw-escape include-raw-jjb-update.sh
 
     publishers:
         - email-notification: