aboutsummaryrefslogtreecommitdiff
path: root/trigger-linux-linaro-tracking-ll.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-01-12 21:02:16 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-01-12 21:02:16 +0200
commit354827990d84dc456b29796952d7b3db6fb72bbb (patch)
tree0126f6d0c6288082f4264533f3f3b23a97277604 /trigger-linux-linaro-tracking-ll.yaml
parent05b607cf98b3c91e7566246d0e59e2a10e624e32 (diff)
trigger-linux-linaro-tracking-ll: add automated recipe update notification
Change-Id: Iecd8e6d4adfdfd217a2a460aa785063a814e4452 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'trigger-linux-linaro-tracking-ll.yaml')
-rw-r--r--trigger-linux-linaro-tracking-ll.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/trigger-linux-linaro-tracking-ll.yaml b/trigger-linux-linaro-tracking-ll.yaml
index c6bd68d794..2b3872dc0c 100644
--- a/trigger-linux-linaro-tracking-ll.yaml
+++ b/trigger-linux-linaro-tracking-ll.yaml
@@ -29,5 +29,34 @@
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
+ - shell: |
+ #!/bin/bash
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ rm -rf meta-linaro
+ }
+
+ git clone --depth 1 http://git.linaro.org/openembedded/meta-linaro.git
+
+ VERSION=`grep "^VERSION =" Makefile | cut -d' ' -f3`.`grep "^PATCHLEVEL =" Makefile | cut -d' ' -f3`
+
+ ll_recipe=`find meta-linaro -type f -name 'linux-linaro-aarch64.bb'`
+ sed -i "s|^SRCREV_kernel=.*|SRCREV_kernel=\"${GIT_COMMIT}\"|" ${ll_recipe}
+ sed -i "s|^PV = .*|PV = \"${VERSION}+git\${SRCPV}\"|" ${ll_recipe}
+
+ ll_recipe=`find meta-linaro -type f -name 'linux-linaro-vexpress_git.bb'`
+ sed -i "s|^SRCREV_kernel=.*|SRCREV_kernel=\"${GIT_COMMIT}\"|" ${ll_recipe}
+ sed -i "s|^PV = .*|PV = \"${VERSION}+git\${SRCPV}\"|" ${ll_recipe}
+
+ cd meta-linaro && git diff > ${WORKSPACE}/linux-linaro-recipe-update.patch
- trigger-builds:
- project: 'linux-linaro-tracking-ll'
+ publishers:
+ - email-ext:
+ recipients: 'fathi.boudra@linaro.org, koen.kooi@linaro.org'
+ attachments: '*.patch'
+ always: true