aboutsummaryrefslogtreecommitdiff
path: root/trigger-oe-recipe-gator.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-01-09 13:00:32 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-01-09 13:00:32 +0200
commit8032805940dd2adb0dc87d3c5a269ca224532920 (patch)
treecd6d2648560f73a3cbd5af6a2f44210607d3e7ba /trigger-oe-recipe-gator.yaml
parenta5632429cfc6dd1dfb6becef29131f4ea397d1e7 (diff)
trigger-oe-recipe-gator: add a trigger job for GATOR recipe
send an automated notification to update GATOR recipe Change-Id: Id92a8bbc659ecb189c97e79cc25174db1b2081fa Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'trigger-oe-recipe-gator.yaml')
-rw-r--r--trigger-oe-recipe-gator.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/trigger-oe-recipe-gator.yaml b/trigger-oe-recipe-gator.yaml
new file mode 100644
index 0000000000..1b9dd2ae31
--- /dev/null
+++ b/trigger-oe-recipe-gator.yaml
@@ -0,0 +1,53 @@
+- job:
+ name: trigger-oe-recipe-gator
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ disabled: false
+ node: build
+ display-name: 'Trigger for GATOR recipe'
+ scm:
+ - git:
+ url: http://git.linaro.org/arm/ds5/gator.git
+ refspec: +refs/heads/linaro:refs/remotes/origin/linaro
+ name: origin
+ branches:
+ - origin/linaro
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - pollscm: 'H/5 * * * *'
+ wrappers:
+ - timestamps
+ - 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
+ gator_recipe=`find meta-linaro -type f -name 'gator_git.bb'`
+ sed -i "s|^SRCREV = .*|SRCREV = \"${GIT_COMMIT}\"|" ${gator_recipe}
+ sed -i "s|^PV = .*|PV = \"`git describe --tags | cut -d'-' -f2`+git\${SRCPV}\"|" ${gator_recipe}
+
+ cd meta-linaro && git diff > ${WORKSPACE}/gator-recipe-update.patch
+ publishers:
+ - email-ext:
+ recipients: 'fathi.boudra@linaro.org, koen.kooi@linaro.org'
+ attachments: '*.patch'
+ always: true