aboutsummaryrefslogtreecommitdiff
path: root/rpb-kernel-matrix.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-07-02 12:20:07 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2016-07-02 12:20:07 +0300
commite0c7324d83a9ae1547d8d363ef708c3c1c881819 (patch)
treef817dc6626a4e643a0accf315848a620ad29289b /rpb-kernel-matrix.yaml
parentdfc5054ae9b9efdc48a7f5b21350fca158c91333 (diff)
downloadconfigs-e0c7324d83a9ae1547d8d363ef708c3c1c881819.tar.gz
RPB: rename the build jobs files and adjust display names
As part of the Reference Software Platform transition, rename the build jobs files and adjust the display names. It's a purely cosmetic change in order to start to move RPBs into their own namespace: https://ci.linaro.org/view/reference-platform/ Note: the build jobs names aren't yet modified on purpose and avoid to break the build pipeline. Change-Id: Iba180092faafda1378a243d339c19cc2b0c32d9c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'rpb-kernel-matrix.yaml')
-rw-r--r--rpb-kernel-matrix.yaml151
1 files changed, 151 insertions, 0 deletions
diff --git a/rpb-kernel-matrix.yaml b/rpb-kernel-matrix.yaml
new file mode 100644
index 000000000..6f6b01210
--- /dev/null
+++ b/rpb-kernel-matrix.yaml
@@ -0,0 +1,151 @@
+- job:
+ name: 96boards-reference-kernel-matrix
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ - job-workspace
+ linaro:
+ - job-read
+ - job-extended-read
+ - job-build
+ - job-cancel
+ disabled: true
+ node: build
+ display-name: 'Reference Platform - Linux Kernel (matrix)'
+ axes:
+ - axis:
+ type: user-defined
+ name: MX_PLATFORM
+ values:
+ - hikey
+ - dragonboard410c
+ - axis:
+ type: slave
+ name: label
+ values:
+ - docker-utopic-amd64
+ execution-strategy:
+ sequential: true
+ touchstone:
+ expr: 'MX_PLATFORM=="hikey"'
+ wrappers:
+ - timestamps
+ - build-name:
+ name: '#${BUILD_NUMBER}'
+ - matrix-tie-parent:
+ node: build
+ builders:
+ - linaro-publish-token:
+ host: builds.96boards.org
+ - shell: |
+ #!/bin/bash
+
+ sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
+ sudo apt-get update
+ sudo apt-get install -y ccache python-pycurl
+
+ set -ex
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ rm -rf linux
+ rm -rf out
+ }
+
+ export LANG=C
+ CCACHE_DIR="${HOME}/srv/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 make_bootwrapper=false
+ export make_install=true
+ export kernel_flavour=reference-${MX_PLATFORM}
+ export kernel_config="defconfig distro.config"
+ export MAKE_DTBS=true
+ export ARCH=arm64
+ export tcbindir="${HOME}/srv/toolchain/arm64-tc-15.02/bin"
+ export toolchain_url="http://releases.linaro.org/15.02/components/toolchain/binaries/aarch64-linux-gnu/gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu.tar.xz"
+ export KERNEL_URL=https://github.com/rsalveti/linux.git
+
+ if [ "${MX_PLATFORM}" == "hikey" ]; then
+ KERNEL_BRANCH=reference-hikey-rebase
+ elif [ "${MX_PLATFORM}" == "dragonboard410c" ]; then
+ KERNEL_BRANCH=reference-qcom-rebase
+ fi
+
+ git clone -b ${KERNEL_BRANCH} --depth 1 ${KERNEL_URL} linux
+ cd linux
+ export JENKINS_WORKSPACE=${WORKSPACE}
+ unset WORKSPACE
+
+ # Export the kernel packaging version
+ kernel_version=`make kernelversion`
+ kernel_release=${kernel_version}-linaro-${kernel_flavour}
+ export KDEB_PKGVERSION="${kernel_release}-${BUILD_NUMBER}"
+
+ # Build the kernel
+ rm -rf lci-build-tools
+ git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git
+ bash -x lci-build-tools/jenkins_kernel_build_inst
+
+ # Final preparation for publishing
+ cp -a *.dsc *.changes *.deb out/
+ cp linux*orig.tar.gz out/
+
+ # Build information
+ KERNEL_GIT_HEAD=`git log --format="%H" -1`
+ cat > out/README.textile << EOF
+
+ h4. 96Boards - Reference Component - Kernel ($MX_PLATFORM)
+
+ Linux Kernel build consumed by the 96Boards Reference Platform Builds
+
+ Build Description:
+ * Build URL: "$BUILD_URL":$BUILD_URL
+ * Kernel tree: "$KERNEL_URL":$KERNEL_URL
+ * Kernel branch: $KERNEL_BRANCH
+ * Kernel version: $kernel_version
+ * Kernel release: $kernel_release
+ * Kernel deb version: $KDEB_PKGVERSION
+ EOF
+
+ # Create MD5SUMS file
+ (cd out && md5sum *.tar.gz *.deb > MD5SUMS.txt)
+
+ unset WORKSPACE
+ export WORKSPACE=${JENKINS_WORKSPACE}
+ cd ${WORKSPACE}
+
+ # 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 \
+ linux/out snapshots/reference-platform/components/linux/${MX_PLATFORM}/${BUILD_NUMBER}/
+
+ CCACHE_DIR=${CCACHE_DIR} ccache -M 30G
+ CCACHE_DIR=${CCACHE_DIR} ccache -s
+
+ # Create post-build parameters (useful for other jobs)
+ cat << EOF >> post_build_parameters
+ KERNEL_VERSION=${kernel_version}
+ KERNEL_RELEASE=${kernel_release}
+ KDEB_PKGVERSION=${KDEB_PKGVERSION}
+ EOF
+ - inject:
+ properties-file: post_build_parameters
+ publishers:
+ - email:
+ recipients: 'fathi.boudra@linaro.org ricardo.salveti@linaro.org'