aboutsummaryrefslogtreecommitdiff
path: root/linux-linaro-stable-lsk-v3.14-rt.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-12-24 20:00:28 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-12-24 20:00:28 +0200
commitebeb34f4ca3814b0c4671f89a354a5df46998b79 (patch)
treeab0539965b239251297f4fd5b32a21c1e4c31f39 /linux-linaro-stable-lsk-v3.14-rt.yaml
parent5388d6880624e7438c61fe9fbb02c521d7a2f48b (diff)
linux-linaro-stable-lsk-v3.14-rt: add initial job
Change-Id: Ib385b48f2e7e11ba5352d4509205fbec7bc7760d Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linux-linaro-stable-lsk-v3.14-rt.yaml')
-rw-r--r--linux-linaro-stable-lsk-v3.14-rt.yaml161
1 files changed, 161 insertions, 0 deletions
diff --git a/linux-linaro-stable-lsk-v3.14-rt.yaml b/linux-linaro-stable-lsk-v3.14-rt.yaml
new file mode 100644
index 0000000000..b8ddcfecd0
--- /dev/null
+++ b/linux-linaro-stable-lsk-v3.14-rt.yaml
@@ -0,0 +1,161 @@
+- job:
+ name: linux-linaro-stable-lsk-v3.14-rt
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ - job-workspace
+ parameters:
+ - password:
+ name: PUBLISH_KEY
+ default: ${PUBLISH_KEY}
+ - string:
+ name: BUNDLE_STREAM_NAME
+ default: '/private/team/linaro/ci-linux-linaro-stable-lsk-v3.14-rt/'
+ - string:
+ name: LAVA_SERVER
+ default: 'validation.linaro.org/RPC2/'
+ disabled: false
+ node: build
+ child-workspace: .
+ display-name: 'Linaro Stable Kernel (linux-linaro-lsk-v3.14-rt)'
+ scm:
+ - git:
+ url: git://git.linaro.org/kernel/linux-linaro-stable.git
+ refspec: +refs/heads/linux-linaro-lsk-v3.14-rt:refs/remotes/origin/linux-linaro-lsk-v3.14-rt
+ name: origin
+ branches:
+ - origin/linux-linaro-lsk-v3.14-rt
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ axes:
+ - axis:
+ type: user-defined
+ name: hwpack
+ values:
+ - arndale
+ - beaglebone
+# - panda
+ - axis:
+ type: slave
+ name: label
+ values:
+ - build
+ execution-strategy:
+ sequential: true
+ wrappers:
+ - timestamps
+ - copy-to-slave:
+ includes:
+ - gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ - matrix-tie-parent:
+ node: build
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ rm -rf builddir*
+ rm -rf out
+ rm -f linux-*.deb
+ }
+
+ export LANG=C
+ CCACHE_DIR="$HOME/ccache"
+ CCACHE_UNIFY=1
+ CCACHE_SLOPPINESS=file_macro,include_file_mtime,time_macros
+ export CCACHE_DIR CCACHE_UNIFY CCACHE_SLOPPINESS
+ export use_ccache=true
+ export use_config_fragment=1
+ export MAKE_DTBS=true
+ export toolchain_url="http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz"
+
+ case "${hwpack}" in
+ arndale)
+ export hwpack_type="arndale"
+ export board_types="arndale"
+ export kernel_flavour="arndale"
+ export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/preempt-rt.conf linaro/configs/arndale.conf"
+ export DEVICE_TYPE="arndale"
+ ;;
+ beaglebone)
+ export hwpack_type="beaglebone"
+ export board_types="beaglebone-black"
+ export kernel_flavour="am335x"
+ export conf_filenames="arch/arm/configs/omap2plus_defconfig linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/preempt-rt.conf"
+ export DEVICE_TYPE="beaglebone-black"
+ ;;
+ panda)
+ export hwpack_type="panda"
+ export board_types="panda-es"
+ export kernel_flavour="omap"
+ export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/preempt-rt.conf linaro/configs/omap4.conf"
+ export DEVICE_TYPE="panda-es"
+ ;;
+ esac
+
+ rm -rf configs lci-build-tools
+ git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git
+ git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+ bash -x lci-build-tools/jenkins_kernel_build_inst
+
+ mkdir -p out
+ cp -a builddir-*-${kernel_flavour}/.config out/kernel_config_${kernel_flavour}
+ mv hwpack_linaro-${hwpack_type}* out/
+
+ ${HOME}/bin/linaro-cp out kernel-hwpack/linux-linaro-stable-lsk-v3.14-rt-${hwpack}/${BUILD_NUMBER}
+
+ CCACHE_DIR=${CCACHE_DIR} ccache -M 20G
+ CCACHE_DIR=${CCACHE_DIR} ccache -s
+
+ KERNEL_URL="http://snapshots.linaro.org/kernel-hwpack/linux-linaro-stable-lsk-v3.14-rt-${hwpack}/${BUILD_NUMBER}"
+ HWPACK_BUILD_URL="${KERNEL_URL}/`ls out/hwpack_linaro-${hwpack_type}*.tar.gz |xargs basename`"
+
+ # Create post-build-lava parameters
+ cat << EOF > post_build_lava_parameters
+ DEVICE_TYPE=${DEVICE_TYPE}
+ BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME}
+ CUSTOM_JSON_URL=${JOB_URL}/ws/custom_lava_job_definition.json
+ LAVA_SERVER=${LAVA_SERVER}
+ HWPACK_BUILD_URL=${HWPACK_BUILD_URL}
+ hwpack_type=${hwpack_type}
+ EOF
+ - inject:
+ properties-file: post_build_lava_parameters
+ - shell: |
+ case "${hwpack}" in
+ arndale|beaglebone|panda)
+ # Get rootfs URL
+ export ROOTFS_BUILD_NUMBER=311
+ export ROOTFS_BUILD_URL="http://releases.linaro.org/14.12/openembedded/images/lamp-armv7a/linaro-image-lamp-genericarmv7a-20141212-311.rootfs.tar.gz"
+
+ ./lci-build-tools/yaml-to-json.py configs/linux-linaro-stable-lsk-v3.14-rt/lava-job-definitions/${DEVICE_TYPE}/template.yaml > custom_lava_job_definition.json
+ ;;
+ esac
+ - trigger-builds:
+ - project: 'post-build-lava'
+ property-file: post_build_lava_parameters
+ block: true
+ publishers:
+ - warnings:
+ console-log-parsers:
+ - 'GNU C Compiler 4 (gcc)'
+ - email-ext:
+ recipients: 'mark.brown@linaro.org, alex.shi@linaro.org, fathi.boudra@linaro.org'
+ attach-build-log: true
+ matrix-trigger: both