# 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'