From: Thanh Ha Date: Mon, 1 Dec 2014 18:47:16 +0000 (-0500) Subject: Install githooks to automatically add Change-Id X-Git-Tag: release/lithium~594 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=985bf8afd2d2d78ce44b45ac37e12a2a908870a0;p=releng%2Fbuilder.git Install githooks to automatically add Change-Id Change-Id: I4dbc21e4c9d4f3617bece4bbfb9f22877b631854 Signed-off-by: Thanh Ha --- diff --git a/jjb/include-raw-jjb-update.sh b/jjb/include-raw-jjb-update.sh new file mode 100644 index 000000000..e16f1db0d --- /dev/null +++ b/jjb/include-raw-jjb-update.sh @@ -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 diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index b7598b2aa..e269b3666 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -98,14 +98,8 @@ 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: