From 985bf8afd2d2d78ce44b45ac37e12a2a908870a0 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 1 Dec 2014 13:47:16 -0500 Subject: [PATCH] Install githooks to automatically add Change-Id Change-Id: I4dbc21e4c9d4f3617bece4bbfb9f22877b631854 Signed-off-by: Thanh Ha --- jjb/include-raw-jjb-update.sh | 8 ++++++++ jjb/releng-jobs.yaml | 10 ++-------- 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 jjb/include-raw-jjb-update.sh 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: -- 2.36.6