aboutsummaryrefslogtreecommitdiff
path: root/package-and-publish-linux-linaro.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-05-27 11:45:39 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2016-05-27 08:46:48 +0000
commit914d4496d025126df5364b5003fd6e78ea25d75b (patch)
treee62a9ba1ecec7c704216140e28f3b9b70c58714c /package-and-publish-linux-linaro.yaml
parent8d1914e8b9bfeb5731a6feb97865b278b7b6768e (diff)
downloadconfigs-914d4496d025126df5364b5003fd6e78ea25d75b.tar.gz
package-and-publish-linux-linaro: convert job to yaml
Change-Id: Ibfecdd1feddd3cf3f1cf634b86191c9a89b366c6 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'package-and-publish-linux-linaro.yaml')
-rw-r--r--package-and-publish-linux-linaro.yaml160
1 files changed, 160 insertions, 0 deletions
diff --git a/package-and-publish-linux-linaro.yaml b/package-and-publish-linux-linaro.yaml
new file mode 100644
index 000000000..f3b280347
--- /dev/null
+++ b/package-and-publish-linux-linaro.yaml
@@ -0,0 +1,160 @@
+- 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
+ - arndale-octa
+ - beaglebone
+ - lt-vexpress
+ - omap
+ - omap-be
+ - 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
+
+ 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'