aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2016-01-25 11:16:38 -0700
committerRob Savoye <rob.savoye@linaro.org>2016-01-25 11:16:38 -0700
commitad123eeaac0c1d69339fabd07a06b120e8574ec9 (patch)
tree42a62c620a045ca89d2b106fae65d7d7a4635359
parentf2771181a8ef47a8e6c75a6c16bbe10bc2697a0d (diff)
Initial jobs for TCWG extended validation, cloned from existing jobs.
-rw-r--r--tcwg-openembedded.yaml84
-rw-r--r--tcwg-ubuntu-rootfs.yaml94
2 files changed, 178 insertions, 0 deletions
diff --git a/tcwg-openembedded.yaml b/tcwg-openembedded.yaml
new file mode 100644
index 0000000000..d8dfcc4002
--- /dev/null
+++ b/tcwg-openembedded.yaml
@@ -0,0 +1,84 @@
+- job:
+ name: tcwg-openembedded
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-build
+ - job-cancel
+ parameters:
+ - string:
+ name: toolchain_url
+ default: 'http://releases.linaro.org/components/toolchain/binaries/5.2-2015.11/arm-linux-gnueabihf/gcc-linaro-5.2-2015.11-x86_64_arm-linux-gnueabihf.tar.xz'
+ disabled: false
+ node: build
+ display-name: 'OpenEmbedded rootfs with external toolchain (ARMv7-A)'
+ scm:
+ - git:
+ url: https://git.linaro.org/openembedded/jenkins-setup.git
+ refspec: +refs/heads/master:refs/remotes/origin/master
+ name: origin
+ branches:
+ - refs/heads/master
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ axes:
+ - axis:
+ type: slave
+ name: label
+ values:
+ - build
+ - axis:
+ type: user-defined
+ name: rootfs
+ values:
+ - lamp
+ - minimal
+ execution-strategy:
+ sequential: true
+ touchstone:
+ expr: 'rootfs=="minimal"'
+ wrappers:
+ - timestamps
+ - matrix-tie-parent:
+ node: build
+ builders:
+ - linaro-publish-token
+ - shell: |
+ #!/bin/bash
+
+ set -x
+
+ # we clean build and populate it from cache
+ bash -x pre-build-do-cleanup.sh
+
+ # do a build
+ bash -x init-and-build.sh -a armv7a -u ${toolchain_url} linaro-image-${rootfs}
+
+ cd ${WORKSPACE}
+
+ bash -x post-build-create-image-manifest.sh
+ bash -x post-build-sort-out-downloads.sh
+
+ # Capture what we're building in the build output.
+ echo "Build configuration: ${PWD}"
+ git log --format="%H %s" -1
+ $HOME/bin/repo forall -p -c 'git log --format="%H %s" -1'
+
+ # 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 \
+ --link-latest \
+ out/ openembedded/images/${rootfs}-armv7a-external-toolchain/${BUILD_NUMBER}
+ publishers:
+ - email:
+ recipients: 'fathi.boudra@linaro.org koen.kooi@linaro.org'
diff --git a/tcwg-ubuntu-rootfs.yaml b/tcwg-ubuntu-rootfs.yaml
new file mode 100644
index 0000000000..744e1df5fd
--- /dev/null
+++ b/tcwg-ubuntu-rootfs.yaml
@@ -0,0 +1,94 @@
+- job:
+ name: ubuntu-arm64-rootfs
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ artifactNumToKeep: 1
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-build
+ - job-cancel
+ disabled: false
+ node: build
+ child-workspace: .
+ display-name: 'Linaro Ubuntu arm64 rootfs'
+ scm:
+ - git:
+ url: git://git.linaro.org/ci/ubuntu-build-service.git
+ refspec: +refs/heads/master:refs/remotes/origin/master
+ name: origin
+ branches:
+ - refs/heads/master
+ skip-tag: true
+ shallow-clone: true
+ clean:
+ after: true
+ wipe-workspace: false
+ axes:
+ - axis:
+ type: slave
+ name: label
+ values:
+ - docker-vivid-arm64
+ - axis:
+ type: user-defined
+ name: rootfs
+ values:
+ - alip
+ - developer
+ - gnome
+ - nano
+ wrappers:
+ - timestamps
+ - matrix-tie-parent:
+ node: build
+ - timeout:
+ timeout: 120
+ builders:
+ - linaro-publish-token
+ - shell: |
+ #!/bin/bash
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ sudo umount builddir
+ }
+
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends cpio debootstrap live-build python-pycurl uuid-runtime
+ sudo dpkg -i --force-all packages/live-build_3.0.5-1linaro1_all.deb
+
+ dpkg -s qemu-user-static |grep '^Version'
+ dpkg -s live-build |grep '^Version'
+
+ test -d builddir || mkdir builddir
+ sudo mount -t tmpfs -o size=6G tmpfs builddir
+ cp -a vivid-arm64-${rootfs} builddir/
+ cd builddir/vivid-arm64-${rootfs}
+ ./configure
+ make
+
+ cd ${WORKSPACE}
+ sudo rm -rf out && mkdir out
+ sudo mv builddir/vivid-arm64-${rootfs}/linaro-vivid-* out
+
+ # 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 --link-latest out ubuntu/images/${rootfs}-arm64/${BUILD_NUMBER}
+ publishers:
+ - archive:
+ artifacts: 'out/linaro-vivid-${rootfs}-*'
+ - trigger:
+ project: 'lt-qcom-ubuntu-images-arm64'
+ - email:
+ recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'