diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-12-16 11:22:18 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-12-16 11:23:37 +0200 |
commit | a9cd29edf2573870935c7e55d6b473f315625738 (patch) | |
tree | e574a99f8a80c7b0e7589b4208436dedce61147a /linaro-edk2-prep.yaml | |
parent | 65569d3751cc9f331b5cc8efa4001e10e9be0834 (diff) |
Add linaro-edk2-prep job
Change-Id: Ib4d557e297f5b7006016aaca61dbe6d9f8d474de
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro-edk2-prep.yaml')
-rw-r--r-- | linaro-edk2-prep.yaml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/linaro-edk2-prep.yaml b/linaro-edk2-prep.yaml new file mode 100644 index 0000000000..5b469e3e71 --- /dev/null +++ b/linaro-edk2-prep.yaml @@ -0,0 +1,83 @@ +- job: + name: linaro-edk2-prep + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + leif.lindholm@linaro.org: + - job-read + - job-extended-read + - job-build + - job-cancel + parameters: + - password: + name: PUBLISH_KEY + default: ${PUBLISH_KEY} + disabled: false + node: build + display-name: 'Linaro EDK II - UEFI Continuous Integration (pre-release)' + scm: + - git: + url: http://git.linaro.org/git/uefi/linaro-edk2.git + refspec: +refs/heads/release-prep:refs/remotes/origin/release-prep + name: origin + branches: + - origin/release-prep + basedir: linaro-edk2 + skip-tag: true + shallow-clone: true + clean: true + wipe-workspace: false + triggers: + - pollscm: 'H/5 * * * *' + wrappers: + - timestamps + - copy-to-slave: + includes: + - gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz + - gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux.tar.xz + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - shell: | + #!/bin/bash + + set -ex + + trap cleanup_exit INT TERM EXIT + + cleanup_exit() + { + cd ${WORKSPACE} + rm -rf arm-tc + rm -rf arm64-tc + rm -rf uefi-ci uefi-tools + rm -rf ${JOB_NAME}-build + rm -rf out + } + + # Install custom toolchain + mkdir arm-tc arm64-tc + tar --strip-components=1 -C ${WORKSPACE}/arm-tc -xf gcc-linaro-arm-linux-gnueabihf-4.8-*_linux.tar.xz + tar --strip-components=1 -C ${WORKSPACE}/arm64-tc -xf gcc-linaro-aarch64-linux-gnu-4.8-*_linux.tar.xz + export PATH="${WORKSPACE}/arm-tc/bin:${WORKSPACE}/arm64-tc/bin:$PATH" + + git clone git://git.linaro.org/uefi/uefi-tools.git + git clone git://git.linaro.org/ci/uefi.git uefi-ci + bash -x uefi-ci/uefi.sh + + builddir=${WORKSPACE}/${JOB_NAME}-build + outdir=${WORKSPACE}/out + mkdir -p ${outdir} + mv ${builddir}/* ${outdir}/ + + ${HOME}/bin/linaro-cp out components/kernel/${JOB_NAME}/${BUILD_NUMBER} + publishers: + - email: + recipients: 'leif.lindholm@linaro.org fathi.boudra@linaro.org' |