- job: name: package-and-publish-linux-linaro 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: false node: build child-workspace: . display-name: 'Package and publish Linux Linaro' scm: - git: url: https://git.linaro.org/kernel/linux-linaro-tracking.git refspec: +refs/heads/linux-linaro:refs/remotes/origin/linux-linaro name: origin branches: - refs/heads/linux-linaro basedir: reference-git skip-tag: true shallow-clone: false wipe-workspace: false axes: - axis: type: user-defined name: hwpack values: - arndale - arndale-be - lt-vexpress - vexpress - vexpress64 - vexpress64-be - axis: type: slave name: label values: - build execution-strategy: sequential: true wrappers: - timestamps - copy-to-slave: includes: - .gnupg/ - .ssh/ - .dput.cf - 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 # Set up local ssh keys for upload signing cp -a .ssh ~ rm -rf .ssh chmod og-rwx ~/.ssh ~/.ssh/id_rsa #set up upload config for repo.l.o mv .dput.cf ~ 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" # 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 master git://git.linaro.org/kernel/linux-linaro-tracking.git ${reference_git} case "${hwpack}" in arndale|arndale-octa|beaglebone|highbank|lt-vexpress|midway|omap|u8500|vexpress) export TCBINDIR=${WORKSPACE}/arm-tc/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" ;; arndale-be|omap-be) export TCBINDIR=${WORKSPACE}/armeb-tc/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" ;; vexpress64) export HOST_PPA=linaro-overlay export TCBINDIR=${WORKSPACE}/arm64-tc/bin export toolchain_url=file://${WORKSPACE}/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux.tar.xz export conf_options="-k B86C70FE do_publish_release_tag=false" ;; vexpress64-be) export TCBINDIR=${WORKSPACE}/arm64-tc/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-${hwpack}/${BUILD_NUMBER} publishers: - archive: artifacts: 'out/*.deb' excludes: 'out/*dbgsym*.deb' - email: recipients: 'fathi.boudra@linaro.org'