diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-12-02 20:08:05 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-12-02 20:08:05 +0200 |
commit | b2abd38d682d68aff465dd9cbe9ae980954c8435 (patch) | |
tree | 96de33988fee5e9b5905abb7fcd36203dfd6ab6b /96boards-bubblegum-u-boot.yaml | |
parent | 71a8003da04e3d24d35601edc1c7468f5bb1bbbb (diff) |
96boards-bubblegum-u-boot: initial build job
Change-Id: I004cbd9fbb5f53dde33b7b4c040d1c67a72ee224
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-bubblegum-u-boot.yaml')
-rw-r--r-- | 96boards-bubblegum-u-boot.yaml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/96boards-bubblegum-u-boot.yaml b/96boards-bubblegum-u-boot.yaml new file mode 100644 index 00000000..9b795622 --- /dev/null +++ b/96boards-bubblegum-u-boot.yaml @@ -0,0 +1,83 @@ +- job: + name: 96boards-bubblegum-u-boot + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + disabled: false + node: docker-jessie-amd64 + display-name: '96boards - Actions Semi Bubblegum U-Boot' + scm: + - git: + url: https://git.linaro.org/people/paul.liu/vendor-uboot.git + refspec: +refs/heads/bubblegum96:refs/remotes/origin/bubblegum96 + name: origin + branches: + - refs/heads/bubblegum96 + 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 s900_96board_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/bubblegum/linaro/u-boot/${BUILD_NUMBER} + publishers: + - email: + recipients: 'fathi.boudra@linaro.org' |