Commit 0f365396 authored by Holger Levsen's avatar Holger Levsen

drop everything live-build related

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 288ea56c
#!/bin/bash
# Copyright 2014-2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
cleanup_all() {
sudo rm -rf --one-file-system $TMPDIR
}
TMPDIR=$(mktemp --tmpdir=/srv/live-build -d -t live-build-XXXXXXXX)
cd $TMPDIR
trap cleanup_all INT TERM EXIT
# $1 is used for the hostname and username
# $2 is used for the suite
# $3 is choosing the flavor
lb config --distribution $2 --bootappend-live "boot=live config hostname=$1 username=$1"
cp -rv /srv/jenkins/live/config .
case "$3" in
standalone) echo education-standalone >> config/package-lists/live.list.chroot
echo education-desktop-xfce >> config/package-lists/live.list.chroot
echo education-laptop >> config/package-lists/live.list.chroot
;;
workstation) echo education-workstation >> config/package-lists/live.list.chroot
echo education-desktop-xfce >> config/package-lists/live.list.chroot
echo education-laptop >> config/package-lists/live.list.chroot
;;
gnome) echo task-gnome-desktop >> config/package-lists/live.list.chroot
;;
xfce) echo task-xfce-desktop >> config/package-lists/live.list.chroot
;;
*) ;;
esac
sudo lb build
mkdir -p /srv/live-build/results
sudo cp -v live-image-amd64.hybrid.iso /srv/live-build/results/$1_$2_$3_live_amd64.iso
echo
echo "$(date -u) - live image created:"
ls -lh /srv/live-build/results/$1_$2_$3_live_amd64.iso
echo
cleanup_all
trap - INT TERM EXIT
......@@ -185,7 +185,6 @@ build_jenkins_job_health_page() {
FILTER[23]="g-i-installation_debian-edu_jessie"
FILTER[24]="g-i-installation_debian-edu_stretch"
FILTER[25]="debian-archive-keyring"
FILTER[26]="live:d-i_build"
numfilters=${#FILTER[@]}
let numfilters-=1 # that's what you get when you start counting from 0
write_page "<!DOCTYPE html><html lang=\"en\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"
......
......@@ -25,4 +25,3 @@
/srv/reproducible-results /srv/reproducible-results none rw,bind 0 0
/srv/d-i /srv/d-i none rw,bind 0 0
/srv/jenkins /srv/jenkins none rw,bind 0 0
/srv/live-build /srv/live-build none rw,bind 0 0
......@@ -15,11 +15,9 @@ jenkins ALL= \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/rm -rf --one-file-system /tmp/*, \
/bin/rm -rv --one-file-system /tmp/*, \
/bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
......
......@@ -13,9 +13,7 @@ jenkins ALL= \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
......
......@@ -15,11 +15,9 @@ jenkins ALL= \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/rm -rf --one-file-system /tmp/*, \
/bin/rm -rv --one-file-system /tmp/*, \
/bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
......
......@@ -13,9 +13,7 @@ jenkins ALL= \
/bin/ls -la /media/*, \
/bin/rm -rf --one-file-system /chroots/*, \
/bin/rm -rf --one-file-system /schroots/*, \
/bin/rm -rf --one-file-system /srv/live-build/*, \
/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
/bin/cp -v *.iso /srv/live-build/results/*, \
/bin/mv /chroots/* /schroots/*, \
/bin/mv /schroots/* /schroots/*, \
/bin/umount -l /chroots/*, \
......
- defaults:
name: live
project-type: freestyle
properties:
- sidebar:
url: https://jenkins.debian.net/userContent/about.html
text: About jenkins.debian.net
icon: /userContent/images/debian-swirl-24x24.png
- sidebar:
url: https://jenkins.debian.net/view/qa.debian.org/
text: Jobs for Debian QA related packages
icon: /userContent/images/debian-jenkins-24x24.png
- sidebar:
url: http://www.profitbricks.co.uk
text: Sponsored by Profitbricks
icon: /userContent/images/profitbricks-24x24.png
description: '{my_description}<br><br>Job configuration source is <a href="https://salsa.debian.org/qa/jenkins.debian.net/blob/master/job-cfg/live.yaml">live.yaml</a>.'
logrotate:
daysToKeep: 90
numToKeep: 20
artifactDaysToKeep: -1
artifactNumToKeep: -1
publishers:
- email:
recipients: 'qa-jenkins-scm@lists.alioth.debian.org'
builders:
- shell: '{my_shell}'
triggers:
- timed: '{my_time}'
#- job-template:
# defaults: live
# name: '{name}_build_debian-edu_stretch_standalone'
#- job-template:
# defaults: live
# name: '{name}_build_debian-edu_stretch_workstation'
- job-template:
defaults: live
name: '{name}_build_debian_stretch_gnome'
- job-template:
defaults: live
name: '{name}_build_debian_stretch_xfce'
- job-template:
defaults: live
name: '{name}_build_debian_sid_xfce'
- job-template:
defaults: live
name: '{name}_setup_schroot'
- project:
name: live
jobs:
#- '{name}_build_debian-edu_stretch_standalone':
# my_description: 'Build Debian Edu Stretch live-image with "standlone" profile.'
# my_time: '0 12 1 * *'
# my_shell: 'schroot --directory /tmp -c source:jenkins-live-stretch /srv/jenkins/bin/live-build.sh debian-edu stretch standalone'
#- '{name}_build_debian-edu_stretch_workstation':
# my_description: 'Build Debian Edu Stretch live-image with "workstation" profile.'
# my_time: '0 12 1 * *'
# my_shell: 'schroot --directory /tmp -c source:jenkins-live-stretch /srv/jenkins/bin/live-build.sh debian-edu stretch workstation'
- '{name}_build_debian_stretch_gnome':
my_description: 'Build Debian Stretch live-image with GNOME desktop.'
my_time: '0 13 1 * *'
my_shell: 'schroot --directory /tmp -c source:jenkins-live-stretch /srv/jenkins/bin/live-build.sh debian stretch gnome'
- '{name}_build_debian_stretch_xfce':
my_description: 'Build Debian Stretch live-image with Xfce desktop.'
my_time: '0 14 1 * *'
my_shell: 'schroot --directory /tmp -c source:jenkins-live-stretch /srv/jenkins/bin/live-build.sh debian stretch xfce'
- '{name}_build_debian_sid_xfce':
my_description: 'Build Debian Sid live-image with Xfce desktop.'
my_time: '0 14 2 * *'
my_shell: 'schroot --directory /tmp -c source:jenkins-live-stretch /srv/jenkins/bin/live-build.sh debian sid xfce'
- '{name}_setup_schroot':
my_description: 'Setup schroot for building live images using live-build in a stretch environment.'
my_time: '42 10 1 * *'
my_shell: '/srv/jenkins/bin/schroot-create.sh live-stretch stretch python live-build'
......@@ -215,7 +215,7 @@ case $HOSTNAME in
esac
# make sure needed directories exists - some directories will not be needed on all hosts...
for directory in /schroots /srv/reproducible-results /srv/d-i /srv/udebs /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts /srv/workspace/chroots ; do
for directory in /schroots /srv/reproducible-results /srv/d-i /srv/udebs /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts /srv/workspace/chroots ; do
if [ ! -d $directory ] ; then
sudo mkdir $directory
fi
......@@ -603,7 +603,7 @@ cd $BASEDIR
shopt -s nullglob
for f in bin/*.sh bin/**/*.sh ; do bash -n "$f" ; done
shopt -u nullglob
for dir in bin logparse live mustache-templates ; do
for dir in bin logparse mustache-templates ; do
sudo mkdir -p /srv/jenkins/$dir
sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment