- job: name: package-and-publish-linux-linaro-stable project-type: matrix defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-read - job-extended-read - job-build - job-cancel - build-discarder: days-to-keep: 60 num-to-keep: 100 artifact-num-to-keep: 1 disabled: true node: build child-workspace: . display-name: 'Package and publish Linaro Stable Kernel (LSK)' scm: - git: url: https://git.linaro.org/kernel/linux-linaro-stable.git refspec: +refs/heads/linux-linaro-lsk:refs/remotes/origin/linux-linaro-lsk name: origin branches: - refs/heads/linux-linaro-lsk basedir: reference-git skip-tag: true shallow-clone: false wipe-workspace: false axes: - axis: type: user-defined name: hwpack values: - lsk-arndale-be - lsk-vexpress - lsk-vexpress-be - lsk-vexpress64 - lsk-vexpress64-be - lt-vexpress64 - axis: type: slave name: label values: - build execution-strategy: sequential: true wrappers: - timestamps - copy-to-slave: includes: - .gnupg/ - default_git_publish_keyfile - gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz - gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz - gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2 relative-to: 'somewhereElse' - build-name: name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' - matrix-tie-parent: node: build builders: - shell: | # this step ensures we have gpg configured # requires "Copy files into the job's workspace before building" above # with "Files to copy" of .gnupg/ cp -a .gnupg ~ gpg --list-keys rm -rf .gnupg exit 0 - linaro-publish-token - shell: | #!/bin/bash set -ex trap cleanup_exit INT TERM EXIT cleanup_exit() { cd ${WORKSPACE} sudo umount kernel_build } dpkg -s dpkg |grep '^Version' test -d kernel_build || mkdir kernel_build sudo mount -t tmpfs -o size=6G tmpfs kernel_build rm -rf ubuntu-kernel-ci git clone git://git.linaro.org/ci/ubuntu-kernel-ci.git ubuntu-kernel-ci # export parent_workspace="/mnt/ci_build/workspace/package-and-publish-linux-linaro-stable" # export reference_git="${parent_workspace}/reference-git" # export nearby_git="${reference_git}/.git" export nearby_git="${WORKSPACE}/reference-git/.git" # test -d ${reference_git} || git clone -b linux-linaro-lsk git://git.linaro.org/kernel/linux-linaro-stable.git ${reference_git} case "${hwpack}" in lsk-arndale-be|lsk-omap-be|lsk-vexpress-be) export TCBINDIR=${WORKSPACE}/tc/armeb/bin export toolchain_url=file://${WORKSPACE}/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux.tar.bz2 export conf_options="do_publish_source_pkg=false do_create_artifact_dir=false do_publish_release_tag=false" ;; lsk-vexpress) export TCBINDIR=${WORKSPACE}/tc/armhf/bin export toolchain_url=file://${WORKSPACE}/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz export conf_options="do_publish_release_tag=false" export conf_options="-k B86C70FE do_publish_release_tag=false" ;; lsk-vexpress64|lsk-vexpress64-be|lt-vexpress64) export TCBINDIR=${WORKSPACE}/tc/arm64/bin export toolchain_url=file://${WORKSPACE}/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz export conf_options="do_publish_source_pkg=false do_create_artifact_dir=false do_publish_release_tag=false" ;; esac ./ubuntu-kernel-ci/scripts/package_kernel --cfg ${hwpack}.cfg nearby_git=${nearby_git} ${conf_options} # Display changelog cat ${WORKSPACE}/kernel_build/linux/debian/changelog # 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 \ # --api_version 3 \ # --link-latest \ # out kernel-hwpack/package-and-publish-linux-linaro-stable-${hwpack}/${BUILD_NUMBER} publishers: - archive: artifacts: 'out/*.deb' excludes: 'out/*dbgsym*.deb' - email: recipients: 'fathi.boudra@linaro.org'