- job: name: trigger-linux-linaro-tracking-ll project-type: freestyle defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read disabled: false node: build display-name: 'Trigger for Linux Linaro Kernel (ll)' scm: - git: url: https://git.linaro.org/kernel/linux-linaro-tracking.git refspec: +refs/heads/linux-linaro:refs/remotes/origin/linux-linaro name: origin branches: - refs/heads/linux-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 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