blob: 1d99e2d24b3d2bd47bdea61e753f3812a0b71555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Large image, expressly to be able to do lava-server tests inside
# which needs lots of dependencies & space for postgresql.
- job:
name: lava-debian-stable-amd64-vm
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
platform-leads:
- job-build
- job-cancel
disabled: false
node: docker-jessie-amd64
display-name: 'LAVA - Build large amd64 Debian Jessie VM'
wrappers:
- timestamps
builders:
- linaro-publish-token
- shell: |
#!/bin/bash
set -ex
export LANG=C
echo "deb http://httpredir.debian.org/debian jessie-backports main" > jessie-backports.list
sudo mv jessie-backports.list /etc/apt/sources.list.d/
sudo apt-get update
sudo apt-get install -y --no-install-recommends -t jessie-backports vmdebootstrap grub2-common
# FIXME: workaround vmdebootstrap/grub usage in docker (not needed on bare-metal machine)
# This is mainly to fix a problem in update-grub where /etc/grub.d/10_linux
# Checks if the $GRUB_DEVICE_UUID exists in /dev/disk/by-uuid and falls
# back to $GRUB_DEVICE if it doesn't.
# $GRUB_DEVICE is /dev/mapper/loopXpY (on docker)
# Creating the symlink ensures that grub consistently uses
# $GRUB_DEVICE_UUID when creating /boot/grub/grub.cfg
sudo wget http://people.linaro.org/~fathi.boudra/grub.py -O /usr/lib/python2.7/dist-packages/vmdebootstrap/grub.py
mkdir out
sudo vmdebootstrap \
--verbose \
--image=${WORKSPACE}/out/large-stable.img \
--size=3G \
--distribution=stable \
--mirror=http://httpredir.debian.org/debian \
--enable-dhcp \
--configure-apt \
--grub \
--serial-console \
--log=${WORKSPACE}/out/vmdebootstrap.log \
--log-level=debug \
--log-mode=0644
gzip -9 ${WORKSPACE}/out/large-stable.img
# 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 debian/images/lava/standard/${BUILD_NUMBER}
publishers:
- email:
recipients: 'neil.williams@linaro.org fathi.boudra@linaro.org'
|