aboutsummaryrefslogtreecommitdiff
path: root/ubuntu-arm64-rootfs.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-11-17 10:23:48 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-11-17 10:23:48 +0200
commit94be22d269ffe1cc0178a3c525ee5f2405bf36d5 (patch)
tree4d1da760a7a47f6597e0831b7dcea81fe500ecef /ubuntu-arm64-rootfs.yaml
parent928b741a239a3665630540d72fb9e92a0640b3e4 (diff)
ubuntu-arm*-rootfs: build ubuntu based rootfs natively
Sync the changes with Debian rootfs - delta is now minimal. Adjust related build jobs to pull the new natively built rootfs. Change-Id: I31e818e6480f5d5e3eb8a032c8dfe5ea495a878e Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'ubuntu-arm64-rootfs.yaml')
-rw-r--r--ubuntu-arm64-rootfs.yaml33
1 files changed, 17 insertions, 16 deletions
diff --git a/ubuntu-arm64-rootfs.yaml b/ubuntu-arm64-rootfs.yaml
index 93b242c68f..744e1df5fd 100644
--- a/ubuntu-arm64-rootfs.yaml
+++ b/ubuntu-arm64-rootfs.yaml
@@ -5,6 +5,7 @@
logrotate:
daysToKeep: 30
numToKeep: 30
+ artifactNumToKeep: 1
properties:
- authorization:
anonymous:
@@ -22,28 +23,27 @@
url: git://git.linaro.org/ci/ubuntu-build-service.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
- branches:
+ branches:
- refs/heads/master
skip-tag: true
shallow-clone: true
- clean: true
+ clean:
+ after: true
wipe-workspace: false
axes:
- axis:
type: slave
name: label
values:
- - build
+ - docker-vivid-arm64
- axis:
type: user-defined
name: rootfs
values:
- - nano
+ - alip
- developer
- gnome
- - alip
- execution-strategy:
- sequential: true
+ - nano
wrappers:
- timestamps
- matrix-tie-parent:
@@ -61,14 +61,15 @@
{
cd ${WORKSPACE}
sudo umount builddir
- rm -rf out
}
+ 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'
- rm -f linaro-vivid-${rootfs}-* *.txt
-
test -d builddir || mkdir builddir
sudo mount -t tmpfs -o size=6G tmpfs builddir
cp -a vivid-arm64-${rootfs} builddir/
@@ -77,16 +78,16 @@
make
cd ${WORKSPACE}
- mkdir out
- cp -a builddir/vivid-arm64-${rootfs}/linaro-vivid-* out
- sudo mv builddir/vivid-arm64-${rootfs}/linaro-vivid-* ${WORKSPACE}
+ sudo rm -rf out && mkdir out
+ sudo mv builddir/vivid-arm64-${rootfs}/linaro-vivid-* out
# Publish
- time python ${HOME}/bin/linaro-cp.py out ubuntu/images/${rootfs}-arm64/${BUILD_NUMBER}
+ 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: 'linaro-vivid-*.tar.gz'
- latest-only: true
+ artifacts: 'out/linaro-vivid-${rootfs}-*'
- trigger:
project: 'lt-qcom-ubuntu-images-arm64'
- email: