diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-07-15 10:43:30 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-07-15 10:43:30 +0300 |
commit | 59f215f1ebc1d765055bbba3fa0f7881b81b7dce (patch) | |
tree | 4beedd9ea7253ea0484309985df0e9382b17d02f /96boards-helium-u-boot.yaml | |
parent | 9cc3850ed629445ede138f54e56fc9e7a357a51d (diff) |
96boards-helium-u-boot: add new job
Change-Id: I8b3188f728aed4f31561336ff7aed9e7d468171e
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-helium-u-boot.yaml')
-rw-r--r-- | 96boards-helium-u-boot.yaml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/96boards-helium-u-boot.yaml b/96boards-helium-u-boot.yaml new file mode 100644 index 00000000..ecb7dce3 --- /dev/null +++ b/96boards-helium-u-boot.yaml @@ -0,0 +1,83 @@ +- job: + name: 96boards-helium-u-boot + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + disabled: false + node: docker-utopic + display-name: '96boards - Marvell PXA1928 Helium U-Boot' + scm: + - git: + url: https://git.linaro.org/people/rob.herring/u-boot.git + refspec: +refs/heads/v2014.10-ara:refs/remotes/origin/v2014.10-ara + name: origin + branches: + - refs/heads/v2014.10-ara + skip-tag: true + shallow-clone: true + wipe-workspace: false + wrappers: + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - linaro-publish-token: + host: builds.96boards.org + - shell: | + #!/bin/bash + + set -ex + + trap cleanup_exit INT TERM EXIT + + cleanup_exit() + { + cd ${WORKSPACE} + rm -rf out + git clean -fdx + } + + sudo apt-get update + sudo apt-get install -y libssl-dev python-pycurl + + # Use pre-installed linaro toolchain + export PATH="${HOME}/srv/toolchain/arm64-tc-15.02/bin:$PATH" + export CROSS_COMPILE="aarch64-linux-gnu-" + + make pxa1928_helium_defconfig + make -j$(getconf _NPROCESSORS_ONLN) + + # Publish + mkdir out + + cat > out/README.txt << EOF + Build information: + * build: ${BUILD_URL} + * git URL: ${GIT_URL} + * git branch: ${GIT_BRANCH} + * git commit: ${GIT_COMMIT} + EOF + + cp -a u-boot.bin out/ + cp -a .config out/u-boot.config + + # Create MD5SUMS file + (cd out && md5sum * > MD5SUMS.txt) + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + time python ${HOME}/bin/linaro-cp.py \ + --server ${PUBLISH_SERVER} \ + --link-latest \ + out snapshots/helium/linaro/u-boot/${BUILD_NUMBER} + publishers: + - email: + recipients: 'fathi.boudra@linaro.org' |