aboutsummaryrefslogtreecommitdiff
path: root/debian-x86-rootfs.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-01-22 11:02:56 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-01-22 11:02:56 +0200
commit237c0a37f27c06a9f34d06fa895cc057691a6526 (patch)
tree4c7c30ece3fee9ec167460f27b680cc409130604 /debian-x86-rootfs.yaml
parentba667f10234d5fb083ca44d3b6a35dc57ed534c5 (diff)
debian-x86-rootfs: add new job to build Debian x86_64 rootfs
Change-Id: Icf04f781c061ef272be5c4eff379b347dc884f91 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'debian-x86-rootfs.yaml')
-rw-r--r--debian-x86-rootfs.yaml83
1 files changed, 83 insertions, 0 deletions
diff --git a/debian-x86-rootfs.yaml b/debian-x86-rootfs.yaml
new file mode 100644
index 0000000000..9d8a562279
--- /dev/null
+++ b/debian-x86-rootfs.yaml
@@ -0,0 +1,83 @@
+- job:
+ name: debian-x86-rootfs
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ parameters:
+ - password:
+ name: PUBLISH_KEY
+ default: ${PUBLISH_KEY}
+ disabled: false
+ node: build
+ child-workspace: .
+ display-name: 'Linaro Debian x86_64 rootfs'
+ scm:
+ - git:
+ url: git://git.linaro.org/ci/ubuntu-build-service.git
+ refspec: +refs/heads/master:refs/remotes/origin/master
+ name: origin
+ branches:
+ - origin/master
+ skip-tag: true
+ shallow-clone: true
+ clean: true
+ wipe-workspace: false
+ axes:
+ - axis:
+ type: slave
+ name: label
+ values:
+ - build
+ - axis:
+ type: user-defined
+ name: rootfs
+ values:
+ - nano
+ execution-strategy:
+ sequential: true
+ wrappers:
+ - timestamps
+ - matrix-tie-parent:
+ node: build
+ - timeout:
+ timeout: 120
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ sudo umount builddir
+ sudo rm -rf out
+ }
+
+ dpkg -s qemu-user-static |grep '^Version'
+ dpkg -s live-build |grep '^Version'
+
+ rm -f linaro-jessie-${rootfs}-* *.txt
+
+ test -d builddir || mkdir builddir
+ sudo mount -t tmpfs -o size=6G tmpfs builddir
+ cp -a jessie-x86-${rootfs} builddir/
+ cd builddir/jessie-x86-${rootfs}
+ ./configure
+ make
+ mkdir -p ${WORKSPACE}/out
+ sudo mv linaro-jessie-* ${WORKSPACE}/out
+ ${HOME}/bin/linaro-cp ${WORKSPACE}/out debian/images/${rootfs}-x86/${BUILD_NUMBER}
+ publishers:
+ - archive:
+ artifacts: 'linaro-jessie-*.tar.gz'
+ latest-only: true
+ - email:
+ recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'