From 72c06c9e9657370cf6d940777ad3840745e97d1f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 9 Dec 2012 16:22:45 +0100 Subject: rename chroot-test to chroot-installation and small improvements --- README | 38 +++--- TODO | 4 +- bin/chroot-installation.sh | 175 ++++++++++++++++++++++++++ bin/chroot_tester.sh | 175 -------------------------- bin/housekeeping.sh | 2 +- job-cfg/chroot-installation.yaml | 263 ++++++++++++++++++++++++++++++++++++++ job-cfg/chroot-tests.yaml | 266 --------------------------------------- 7 files changed, 460 insertions(+), 463 deletions(-) create mode 100755 bin/chroot-installation.sh delete mode 100755 bin/chroot_tester.sh create mode 100644 job-cfg/chroot-installation.yaml delete mode 100644 job-cfg/chroot-tests.yaml diff --git a/README b/README index 7320321c..f0608398 100644 --- a/README +++ b/README @@ -32,48 +32,48 @@ Installation tests with g-i, the graphical version of d-i, the debian-installer. FIXME: Describe g-i-installation jobs here -=== chroot-tests jobs +=== chroot-installation jobs -* chroot-test_housekeeping: +Installation tests inside chroot environments. + +* chroot-installation_housekeeping: ** make sure chroots have been cleaned up properly ** runs at 05:00 UTC and triggers the bootstrap jobs on success -* chroot-test_sid_bootstrap +* chroot-installation_sid_bootstrap ** debootstrap a sid chroot ** triggers the install_gnome job on success -* chroot-test_sid_install_gnome +* chroot-installation_sid_install_gnome ** debootstrap a sid chroot and install gnome -* chroot-test_sid_install_kde +* chroot-installation_sid_install_kde ** debootstrap a sid chroot and install kde -* chroot-test_sid_install_lxde +* chroot-installation_sid_install_lxde ** debootstrap a sid chroot and install lxde -* chroot-test_sid_install_xfce +* chroot-installation_sid_install_xfce ** debootstrap a sid chroot and install xfce -* chroot-test_squeeze_bootstrap_upgrade_to_wheezy +* chroot-installation_squeeze_bootstrap_upgrade_to_wheezy ** debootstrap a squeeze chroot and upgrade it to wheezy ** triggers the upgrade_(gnome|kde|lxde|xfce) jobs on success -* chroot-test_squeeze_install_gnome_upgrade_to_wheezy +* chroot-installation_squeeze_install_gnome_upgrade_to_wheezy ** debootstrap a squeeze chroot, install gnome and upgrade it to wheezy -* chroot-test_squeeze_install_kde_upgrade_to_wheezy +* chroot-installation_squeeze_install_kde_upgrade_to_wheezy ** debootstrap a squeeze chroot, install kde and upgrade it to wheezy -* chroot-test_squeeze_install_lxde_upgrade_to_wheezy +* chroot-installation_squeeze_install_lxde_upgrade_to_wheezy ** debootstrap a squeeze chroot, install lxde and upgrade it to wheezy -* chroot-test_squeeze_install_xfce_upgrade_to_wheezy +* chroot-installation_squeeze_install_xfce_upgrade_to_wheezy ** debootstrap a squeeze chroot, install xfce and upgrade it to wheezy ** triggers the install_(gnome|kde|lxde|xfce) jobs on success -* chroot-test_wheezy_bootstrap +* chroot-installation_wheezy_bootstrap ** debootstrap a wheezy chroot -* chroot-test_wheezy_install_gnome +* chroot-installation_wheezy_install_gnome ** debootstrap a wheezy chroot and install gnome -* chroot-test_wheezy_install_kde +* chroot-installation_wheezy_install_kde ** debootstrap a wheezy chroot and install kde -* chroot-test_wheezy_install_lxde +* chroot-installation_wheezy_install_lxde ** debootstrap a wheezy chroot and install lxde -* chroot-test_wheezy_install_xfce +* chroot-installation_wheezy_install_xfce ** debootstrap a wheezy chroot and install xfce #FIXME: explain full_desktop and developer here, also make this more useful/interesting -FIXME: chroot-tests should really get renamed to chroot-installation - === debian-installer jobs * d_i_build_* - there is one job for each git repo referred to in http://anonscm.debian.org/viewvc/d-i/trunk/.mrconfig?view=co diff --git a/TODO b/TODO index ab31873b..75a8f7ca 100644 --- a/TODO +++ b/TODO @@ -49,10 +49,10 @@ See link:http://jenkins.debian.net/userContent/about.html["about jenkins.debian. * build branches? (which?) * inform debian-boot@ ? -=== chroot-test_* +=== chroot-installation_* * inform debian-devel@ -* chroot-tests: only trigger (=really run) jobs if available+used packages have changed (save packages in db and compare) +* chroot-installation: only trigger (=really run) jobs if available+used packages have changed (save packages in db and compare) ---- h01ger: how about all of the blends? diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh new file mode 100755 index 00000000..4d1e8f30 --- /dev/null +++ b/bin/chroot-installation.sh @@ -0,0 +1,175 @@ +#!/bin/bash + +# Copyright 2012 Holger Levsen +# released under the GPLv=2 + +# $1 = base distro +# $2 = extra component +# $3 = upgrade distro + +if [ "$1" == "" ] ; then + echo "need at least one distribution to act on" + echo '# $1 = base distro' + echo '# $2 = extra component (gnome, kde, xfce, lxce)' + echo '# $3 = upgrade distro' + exit 1 +fi + +SLEEP=$(shuf -i 1-10 -n 1) +echo "Sleeping $SLEEP seconds to randomize start times and parallel runs." +sleep $SLEEP + +# +# default settings +# +set -x +set -e +export LC_ALL=C +export MIRROR=http://ftp.de.debian.org/debian +export http_proxy="http://localhost:3128" + +export SCRIPT_HEADER="#!/bin/bash +set -x +set -e +export DEBIAN_FRONTEND=noninteractive +export LC_ALL=C +export http_proxy=$http_proxy" + +export CHROOT_TARGET=$(mktemp -d -p /chroots/ chroot-installation-$1.XXXXXXXXX) +export TMPFILE=$(mktemp -u) +export CTMPFILE=$CHROOT_TARGET/$TMPFILE + +cleanup_all() { + # test if $CHROOT_TARGET starts with /chroots/ + if [ "${CHROOT_TARGET:0:9}" != "/chroots/" ] ; then + echo "HALP. CHROOT_TARGET = $CHROOT_TARGET" + exit 1 + fi + sudo umount -l $CHROOT_TARGET/proc || fuser -mv $CHROOT_TARGET/proc + sudo rm -rf --one-file-system $CHROOT_TARGET || fuser -mv $CHROOT_TARGET +} + +execute_ctmpfile() { + chmod +x $CTMPFILE + sudo chroot $CHROOT_TARGET $TMPFILE + rm $CTMPFILE +} + +prepare_bootstrap() { + cat >> $CTMPFILE <<-EOF +$SCRIPT_HEADER +mount /proc -t proc /proc +echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d +chmod +x /usr/sbin/policy-rc.d +echo 'Acquire::http::Proxy "http://localhost:3128";' > /etc/apt/apt.conf.d/80proxy +echo "deb-src $MIRROR $1 main contrib non-free" >> /etc/apt/sources.list +apt-get update +EOF +} + +prepare_install_packages() { + cat >> $CTMPFILE <<-EOF +$SCRIPT_HEADER +apt-get -y install $@ +EOF +} + +prepare_install_build_depends() { + cat >> $CTMPFILE <<-EOF +$SCRIPT_HEADER +apt-get -y install build-essential +apt-get -y build-dep $@ +EOF +} + +prepare_upgrade2() { + cat >> $CTMPFILE <<-EOF +echo "deb $MIRROR $1 main contrib non-free" > /etc/apt/sources.list +$SCRIPT_HEADER +apt-get update +apt-get -y upgrade +apt-get -y dist-upgrade +apt-get -y dist-upgrade +apt-get -y autoremove +EOF +} + +bootstrap() { + echo "Bootstraping $1 into $CHROOT_TARGET now." + sudo debootstrap $1 $CHROOT_TARGET $MIRROR + prepare_bootstrap $1 + execute_ctmpfile +} + +install_packages() { + echo "Installing extra packages for $1 now." + shift + prepare_install_packages $@ + execute_ctmpfile +} + +install_build_depends() { + echo "Installing build depends for $1 now." + shift + prepare_install_build_depends $@ + execute_ctmpfile +} + +upgrade2() { + echo "Upgrading to $1 now." + prepare_upgrade2 $1 + execute_ctmpfile +} + +trap cleanup_all INT TERM EXIT + +case $1 in + squeeze) DISTRO="squeeze" + SPECIFIC="openoffice.org virtualbox-ose" + ;; + wheezy) DISTRO="wheezy" + SPECIFIC="libreoffice virtualbox" + ;; + sid) DISTRO="sid" + SPECIFIC="libreoffice virtualbox" + ;; + *) echo "unsupported distro." + exit 1 + ;; +esac +bootstrap $DISTRO +FULL_DESKTOP="$SPECIFIC desktop-base gnome kde-plasma-desktop xfce4 lxde vlc evince iceweasel chromium cups build-essential devscripts mplayer wine texlive-full asciidoc vim emacs" + +if [ "$2" != "" ] ; then + case $2 in + none) ;; + gnome) install_packages gnome gnome desktop-base + ;; + kde) install_packages kde kde-plasma-desktop desktop-base + ;; + xfce) install_packages xfce xfce4 desktop-base + ;; + lxde) install_packages lxde lxde desktop-base + ;; + full_desktop) install_packages full_desktop $FULL_DESKTOP + ;; + developer) install_build_depends developer $FULL_DESKTOP + ;; + *) echo "unsupported component." + exit 1 + ;; + esac +fi + +if [ "$3" != "" ] ; then + case $3 in + squeeze)upgrade2 squeeze;; + wheezy) upgrade2 wheezy;; + sid) upgrade2 sid;; + *) echo "unsupported distro." ; exit 1 ;; + esac +fi + +cleanup_all +trap - INT TERM EXIT + diff --git a/bin/chroot_tester.sh b/bin/chroot_tester.sh deleted file mode 100755 index cf27f393..00000000 --- a/bin/chroot_tester.sh +++ /dev/null @@ -1,175 +0,0 @@ -#!/bin/bash - -# Copyright 2012 Holger Levsen -# released under the GPLv=2 - -# $1 = base distro -# $2 = extra component -# $3 = upgrade distro - -if [ "$1" == "" ] ; then - echo "need at least one distribution to act on" - echo '# $1 = base distro' - echo '# $2 = extra component (gnome, kde, xfce, lxce)' - echo '# $3 = upgrade distro' - exit 1 -fi - -SLEEP=$(shuf -i 1-10 -n 1) -echo "Sleeping $SLEEP seconds to randomize start times and parallel runs." -sleep $SLEEP - -# -# default settings -# -set -x -set -e -export LC_ALL=C -export MIRROR=http://ftp.de.debian.org/debian -export http_proxy="http://localhost:3128" - -export SCRIPT_HEADER="#!/bin/bash -set -x -set -e -export DEBIAN_FRONTEND=noninteractive -export LC_ALL=C -export http_proxy=$http_proxy" - -export CHROOT_TARGET=$(mktemp -d -p /chroots/ chroot-tests-$1.XXXXXXXXX) -export TMPFILE=$(mktemp -u) -export CTMPFILE=$CHROOT_TARGET/$TMPFILE - -cleanup_all() { - # test if $CHROOT_TARGET starts with /chroots/ - if [ "${CHROOT_TARGET:0:9}" != "/chroots/" ] ; then - echo "HALP. CHROOT_TARGET = $CHROOT_TARGET" - exit 1 - fi - sudo umount -l $CHROOT_TARGET/proc || fuser -mv $CHROOT_TARGET/proc - sudo rm -rf --one-file-system $CHROOT_TARGET || fuser -mv $CHROOT_TARGET -} - -execute_ctmpfile() { - chmod +x $CTMPFILE - sudo chroot $CHROOT_TARGET $TMPFILE - rm $CTMPFILE -} - -prepare_bootstrap() { - cat >> $CTMPFILE <<-EOF -$SCRIPT_HEADER -mount /proc -t proc /proc -echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d -chmod +x /usr/sbin/policy-rc.d -echo 'Acquire::http::Proxy "http://localhost:3128";' > /etc/apt/apt.conf.d/80proxy -echo "deb-src $MIRROR $1 main contrib non-free" >> /etc/apt/sources.list -apt-get update -EOF -} - -prepare_install_packages() { - cat >> $CTMPFILE <<-EOF -$SCRIPT_HEADER -apt-get -y install $@ -EOF -} - -prepare_install_build_depends() { - cat >> $CTMPFILE <<-EOF -$SCRIPT_HEADER -apt-get -y build-dep $@ -EOF -} - -prepare_upgrade2() { - cat >> $CTMPFILE <<-EOF -echo "deb $MIRROR $1 main contrib non-free" > /etc/apt/sources.list -$SCRIPT_HEADER -apt-get update -apt-get -y upgrade -apt-get -y dist-upgrade -apt-get -y dist-upgrade -apt-get -y autoremove -EOF -} - -bootstrap() { - echo "Bootstraping $1 into $CHROOT_TARGET now." - sudo debootstrap $1 $CHROOT_TARGET $MIRROR - prepare_bootstrap $1 - execute_ctmpfile -} - -install_packages() { - echo "Installing extra packages for $1 now." - shift - prepare_install_packages $@ - execute_ctmpfile -} - -install_build_depends() { - echo "Installing build depends for $1 now." - shift - prepare_install_build_depends $@ - execute_ctmpfile -} - -upgrade2() { - echo "Upgrading to $1 now." - prepare_upgrade2 $1 - execute_ctmpfile -} - -trap cleanup_all INT TERM EXIT - -case $1 in - squeeze) DISTRO="squeeze" - SPECIFIC="openoffice.org virtualbox-ose" - ;; - wheezy) DISTRO="wheezy" - SPECIFIC="libreoffice virtualbox" - ;; - sid) DISTRO="sid" - SPECIFIC="libreoffice virtualbox" - ;; - *) echo "unsupported distro." - exit 1 - ;; -esac -bootstrap $DISTRO -FULL_DESKTOP="$SPECIFIC desktop-base gnome kde-plasma-desktop xfce4 lxde vlc evince iceweasel chromium cups build-essential devscripts mplayer wine texlive-full asciidoc vim emacs" - -if [ "$2" != "" ] ; then - case $2 in - none) ;; - gnome) install_packages gnome gnome desktop-base - ;; - kde) install_packages kde kde-plasma-desktop desktop-base - ;; - xfce) install_packages xfce xfce4 desktop-base - ;; - lxde) install_packages lxde lxde desktop-base - ;; - full_desktop) install_packages full_desktop $FULL_DESKTOP - ;; - developer) install_packages developer $FULL_DESKTOP - install_build_depends developer $FULL_DESKTOP - ;; - *) echo "unsupported component." - exit 1 - ;; - esac -fi - -if [ "$3" != "" ] ; then - case $3 in - squeeze)upgrade2 squeeze;; - wheezy) upgrade2 wheezy;; - sid) upgrade2 sid;; - *) echo "unsupported distro." ; exit 1 ;; - esac -fi - -cleanup_all -trap - INT TERM EXIT - diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh index c146b60d..b1c862c1 100755 --- a/bin/housekeeping.sh +++ b/bin/housekeeping.sh @@ -24,7 +24,7 @@ echo vnstat -CHROOT_PATTERN="/chroots/chroot-tests-*" +CHROOT_PATTERN="/chroots/chroot-installation-*" HOUSE=$(ls $CHROOT_PATTERN 2>/dev/null) if [ "$HOUSE" != "" ] ; then figlet "Warning:" diff --git a/job-cfg/chroot-installation.yaml b/job-cfg/chroot-installation.yaml new file mode 100644 index 00000000..c55a75c4 --- /dev/null +++ b/job-cfg/chroot-installation.yaml @@ -0,0 +1,263 @@ + +- defaults: + name: chroot-installation + description: '{my_description}{do_not_edit}' + logrotate: + daysToKeep: 90 + numToKeep: 50 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + builders: + - shell: '/srv/jenkins/bin/chroot-installation.sh {installation_params}' + publishers: + - logparser: + rulespath: '/srv/jenkins/logparse/debian.rules' + unstable_on_warning: 'false' + fail_on_error: 'false' + - email: + recipients: jenkins+debian-qa holger@layer-acht.org + properties: + - sidebar: + url: http://jenkins.debian.net/userContent/about.html + text: About jenkins.debian.net + icon: /userContent/images/debian-swirl-24x24.png + - sidebar: + url: http://jenkins.debian.net/view/chroot-installation/ + text: All chroot-installation jobs + icon: /userContent/images/debian-jenkins-24x24.png + - sidebar: + url: http://www.profitbricks.com + text: Sponsored by Profitbricks + icon: /userContent/images/profitbricks-24x24.png + +- defaults: + name: chroot-installation+trigger + description: '{my_description}{do_not_edit}' + logrotate: + daysToKeep: 90 + numToKeep: 50 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + builders: + - shell: '/srv/jenkins/bin/chroot-installation.sh {installation_params}' + publishers: + - logparser: + rulespath: '/srv/jenkins/logparse/debian.rules' + unstable_on_warning: 'false' + fail_on_error: 'false' + - trigger: + project: '{my_trigger}' + - email: + recipients: jenkins+debian-qa holger@layer-acht.org + properties: + - sidebar: + url: http://jenkins.debian.net/userContent/about.html + text: About jenkins.debian.net + icon: /userContent/images/debian-swirl-24x24.png + - sidebar: + url: http://jenkins.debian.net/view/chroot-installation/ + text: All chroot-installation jobs + icon: /userContent/images/debian-jenkins-24x24.png + - sidebar: + url: http://www.profitbricks.com + text: Sponsored by Profitbricks + icon: /userContent/images/profitbricks-24x24.png + +- job-template: + defaults: chroot-installation + name: '{name}_housekeeping' + description: '{my_description}{do_not_edit}' + triggers: + - timed: "0 5 * * *" + builders: + - shell: '/srv/jenkins/bin/housekeeping.sh' + publishers: + - logparser: + rulespath: '/srv/jenkins/logparse/debian.rules' + unstable_on_warning: 'true' + fail_on_error: 'true' + - trigger: + project: '{my_trigger}' + threshold: 'UNSTABLE' + - email: + recipients: jenkins+debian-qa holger@layer-acht.org + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_gnome' + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_kde' + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_lxde' + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_xfce' + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_full_desktop' + +- job-template: + defaults: chroot-installation + name: '{name}_sid_install_developer' + +- job-template: + defaults: chroot-installation+trigger + name: '{name}_sid_bootstrap' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_gnome_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_kde_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_lxde_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_xfce_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_full_desktop_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_squeeze_install_developer_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation+trigger + name: '{name}_squeeze_bootstrap_upgrade_to_wheezy' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_gnome' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_kde' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_lxde' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_xfce' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_full_desktop' + +- job-template: + defaults: chroot-installation + name: '{name}_wheezy_install_developer' + +- job-template: + defaults: chroot-installation+trigger + name: '{name}_wheezy_bootstrap' + +- project: + name: chroot-installation + do_not_edit: '

Job configuration source is chroot-installation.yaml.' + jobs: + - '{name}_sid_install_gnome': + installation_params: 'sid gnome' + my_description: 'Debootstrap sid, then install GNOME.' + + - '{name}_sid_install_kde': + installation_params: 'sid kde' + my_description: 'Debootstrap sid, then install KDE.' + + - '{name}_sid_install_lxde': + installation_params: 'sid lxde' + my_description: 'Debootstrap sid, then install LXDE.' + + - '{name}_sid_install_xfce': + installation_params: 'sid xfce' + my_description: 'Debootstrap sid, then install XFCE.' + + - '{name}_sid_install_full_desktop': + installation_params: 'sid full_desktop' + my_description: 'Debootstrap sid, then install four desktop environments and the most commonly used applications and packages.' + + - '{name}_sid_install_developer': + installation_params: 'sid developer' + my_description: 'Debootstrap sid, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these.' + + - '{name}_sid_bootstrap': + installation_params: 'sid' + my_description: 'Debootstrap sid.' + my_trigger: 'chroot-installation_sid_install_gnome, chroot-installation_sid_install_kde, chroot-installation_sid_install_lxde, chroot-installation_sid_install_xfce, chroot-installation_sid_install_full_desktop, chroot-installation_sid_install_developer' + + - '{name}_squeeze_install_gnome_upgrade_to_wheezy': + installation_params: 'squeeze gnome wheezy' + my_description: 'Debootstrap squeeze, install GNOME then upgrade to wheezy.' + + - '{name}_squeeze_install_kde_upgrade_to_wheezy': + installation_params: 'squeeze kde wheezy' + my_description: 'Debootstrap squeeze, install KDE then upgrade to wheezy.' + + - '{name}_squeeze_install_lxde_upgrade_to_wheezy': + installation_params: 'squeeze lxde wheezy' + my_description: 'Debootstrap squeeze, install LXDE then upgrade to wheezy.' + + - '{name}_squeeze_install_xfce_upgrade_to_wheezy': + installation_params: 'squeeze xfce wheezy' + my_description: 'Debootstrap squeeze, install KFCE then upgrade to wheezy.' + + - '{name}_squeeze_install_full_desktop_upgrade_to_wheezy': + installation_params: 'squeeze full_desktop wheezy' + my_description: 'Debootstrap squeeze, then install four desktop environments and the most commonly used applications and packages, then upgrade to wheezy.' + + - '{name}_squeeze_install_developer_upgrade_to_wheezy': + installation_params: 'squeeze developer wheezy' + my_description: 'Debootstrap squeeze, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these, then upgrade to wheezy.' + + - '{name}_squeeze_bootstrap_upgrade_to_wheezy': + installation_params: 'squeeze none wheezy' + my_description: 'Debootstrap squeeze, then upgrade to wheezy.' + my_trigger: 'chroot-installation_squeeze_install_gnome_upgrade_to_wheezy, chroot-installation_squeeze_install_kde_upgrade_to_wheezy, chroot-installation_squeeze_install_lxde_upgrade_to_wheezy, chroot-installation_squeeze_install_xfce_upgrade_to_wheezy, chroot-installation_squeeze_install_full_desktop_upgrade_to_wheezy, chroot-installation_squeeze_install_developer_upgrade_to_wheezy' + + - '{name}_wheezy_install_gnome': + installation_params: 'wheezy gnome' + my_description: 'Debootstrap wheezy, then install GNOME.' + + - '{name}_wheezy_install_kde': + installation_params: 'wheezy kde' + my_description: 'Debootstrap wheezy, then install KDE.' + + - '{name}_wheezy_install_xfce': + installation_params: 'wheezy xfce' + my_description: 'Debootstrap wheezy, then install XFCE.' + + - '{name}_wheezy_install_lxde': + installation_params: 'wheezy lxde' + my_description: 'Debootstrap wheezy, then install LXDE.' + + - '{name}_wheezy_install_full_desktop': + installation_params: 'wheezy full_desktop' + my_description: 'Debootstrap wheezy, then install four desktop environments and the most commonly used applications and packages.' + + - '{name}_wheezy_install_developer': + installation_params: 'wheezy developer' + my_description: 'Debootstrap wheezy, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these.' + + - '{name}_wheezy_bootstrap': + installation_params: 'wheezy' + my_description: 'Debootstrap wheezy.' + my_trigger: 'chroot-installation_wheezy_install_gnome, chroot-installation_wheezy_install_kde, chroot-installation_wheezy_install_lxde, chroot-installation_wheezy_install_xfce, chroot-installation_wheezy_install_full_desktop, chroot-installation_wheezy_install_developer' + + - '{name}_housekeeping': + my_description: 'Cleanup so that there is a predictable environment.' + my_trigger: 'chroot-installation_sid_bootstrap, chroot-installation_wheezy_bootstrap, chroot-installation_squeeze_bootstrap_upgrade_to_wheezy' + diff --git a/job-cfg/chroot-tests.yaml b/job-cfg/chroot-tests.yaml deleted file mode 100644 index 741b2593..00000000 --- a/job-cfg/chroot-tests.yaml +++ /dev/null @@ -1,266 +0,0 @@ - -- defaults: - name: chroot-tests - description: '{my_description}{do_not_edit}' - logrotate: - daysToKeep: 90 - numToKeep: 50 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - builders: - - shell: '/srv/jenkins/bin/chroot_tester.sh {chroot_tester_params}' - publishers: - - logparser: - rulespath: '/srv/jenkins/logparse/debian.rules' - unstable_on_warning: 'false' - fail_on_error: 'false' - - email: - recipients: jenkins+debian-qa holger@layer-acht.org - properties: - - sidebar: - url: http://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: http://jenkins.debian.net/view/chroot-tests/ - text: All chroot-test jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.com - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png - -- defaults: - name: chroot-tests+trigger - description: '{my_description}{do_not_edit}' - logrotate: - daysToKeep: 90 - numToKeep: 50 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - builders: - - shell: '/srv/jenkins/bin/chroot_tester.sh {chroot_tester_params}' - publishers: - - logparser: - rulespath: '/srv/jenkins/logparse/debian.rules' - unstable_on_warning: 'false' - fail_on_error: 'false' - - trigger: - project: '{my_trigger}' - - email: - recipients: jenkins+debian-qa holger@layer-acht.org - properties: - - sidebar: - url: http://jenkins.debian.net/userContent/about.html - text: About jenkins.debian.net - icon: /userContent/images/debian-swirl-24x24.png - - sidebar: - url: http://jenkins.debian.net/view/chroot-tests/ - text: All chroot-test jobs - icon: /userContent/images/debian-jenkins-24x24.png - - sidebar: - url: http://www.profitbricks.com - text: Sponsored by Profitbricks - icon: /userContent/images/profitbricks-24x24.png - -- job-template: - defaults: chroot-tests - name: '{name}_housekeeping' - description: '{my_description}{do_not_edit}' - triggers: - - timed: "0 5 * * *" - builders: - - shell: '/srv/jenkins/bin/housekeeping.sh' - publishers: - - logparser: - rulespath: '/srv/jenkins/logparse/debian.rules' - unstable_on_warning: 'true' - fail_on_error: 'true' - - trigger: - project: '{my_trigger}' - threshold: 'UNSTABLE' - - email: - recipients: jenkins+debian-qa holger@layer-acht.org - -- job-template: - defaults: chroot-tests - name: '{name}_sid_install_gnome' - -- job-template: - defaults: chroot-tests - name: '{name}_sid_install_kde' - -- job-template: - defaults: chroot-tests - name: '{name}_sid_install_lxde' - -- job-template: - defaults: chroot-tests - name: '{name}_sid_install_xfce' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_sid_install_full_desktop' - -- job-template: - defaults: chroot-tests - name: '{name}_sid_install_developer' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_sid_bootstrap' - -- job-template: - defaults: chroot-tests - name: '{name}_squeeze_install_gnome_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests - name: '{name}_squeeze_install_kde_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests - name: '{name}_squeeze_install_lxde_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests - name: '{name}_squeeze_install_xfce_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_squeeze_install_full_desktop_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests - name: '{name}_squeeze_install_developer_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_squeeze_bootstrap_upgrade_to_wheezy' - -- job-template: - defaults: chroot-tests - name: '{name}_wheezy_install_gnome' - -- job-template: - defaults: chroot-tests - name: '{name}_wheezy_install_kde' - -- job-template: - defaults: chroot-tests - name: '{name}_wheezy_install_lxde' - -- job-template: - defaults: chroot-tests - name: '{name}_wheezy_install_xfce' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_wheezy_install_full_desktop' - -- job-template: - defaults: chroot-tests - name: '{name}_wheezy_install_developer' - -- job-template: - defaults: chroot-tests+trigger - name: '{name}_wheezy_bootstrap' - -- project: - name: chroot-test - do_not_edit: '

Job configuration source is chroot-tests.yaml.' - jobs: - - '{name}_sid_install_gnome': - chroot_tester_params: 'sid gnome' - my_description: 'Debootstrap sid, then install GNOME.' - - - '{name}_sid_install_kde': - chroot_tester_params: 'sid kde' - my_description: 'Debootstrap sid, then install KDE.' - - - '{name}_sid_install_lxde': - chroot_tester_params: 'sid lxde' - my_description: 'Debootstrap sid, then install LXDE.' - - - '{name}_sid_install_xfce': - chroot_tester_params: 'sid xfce' - my_description: 'Debootstrap sid, then install XFCE.' - - - '{name}_sid_install_full_desktop': - chroot_tester_params: 'sid full_desktop' - my_description: 'Debootstrap sid, then install four desktop environments and the most commonly used applications and packages.' - my_trigger: 'chroot-test_sid_install_developer' - - - '{name}_sid_install_developer': - chroot_tester_params: 'sid developer' - my_description: 'Debootstrap sid, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these.' - - - '{name}_sid_bootstrap': - chroot_tester_params: 'sid' - my_description: 'Debootstrap sid.' - my_trigger: 'chroot-test_sid_install_gnome, chroot-test_sid_install_kde, chroot-test_sid_install_lxde, chroot-test_sid_install_xfce, chroot-test_sid_install_full_desktop' - - - '{name}_squeeze_install_gnome_upgrade_to_wheezy': - chroot_tester_params: 'squeeze gnome wheezy' - my_description: 'Debootstrap squeeze, install GNOME then upgrade to wheezy.' - - - '{name}_squeeze_install_kde_upgrade_to_wheezy': - chroot_tester_params: 'squeeze kde wheezy' - my_description: 'Debootstrap squeeze, install KDE then upgrade to wheezy.' - - - '{name}_squeeze_install_lxde_upgrade_to_wheezy': - chroot_tester_params: 'squeeze lxde wheezy' - my_description: 'Debootstrap squeeze, install LXDE then upgrade to wheezy.' - - - '{name}_squeeze_install_xfce_upgrade_to_wheezy': - chroot_tester_params: 'squeeze xfce wheezy' - my_description: 'Debootstrap squeeze, install KFCE then upgrade to wheezy.' - - - '{name}_squeeze_install_full_desktop_upgrade_to_wheezy': - chroot_tester_params: 'squeeze full_desktop wheezy' - my_description: 'Debootstrap squeeze, then install four desktop environments and the most commonly used applications and packages, then upgrade to wheezy.' - my_trigger: 'chroot-test_squeeze_install_developer_upgrade_to_wheezy' - - - '{name}_squeeze_install_developer_upgrade_to_wheezy': - chroot_tester_params: 'sid developer wheezy' - my_description: 'Debootstrap squeeze, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these, then upgrade to wheezy.' - - - '{name}_squeeze_bootstrap_upgrade_to_wheezy': - chroot_tester_params: 'squeeze none wheezy' - my_description: 'Debootstrap squeeze, then upgrade to wheezy.' - my_trigger: 'chroot-test_squeeze_install_gnome_upgrade_to_wheezy, chroot-test_squeeze_install_kde_upgrade_to_wheezy, chroot-test_squeeze_install_lxde_upgrade_to_wheezy, chroot-test_squeeze_install_xfce_upgrade_to_wheezy, chroot-test_squeeze_install_full_desktop_upgrade_to_wheezy' - - - '{name}_wheezy_install_gnome': - chroot_tester_params: 'wheezy gnome' - my_description: 'Debootstrap wheezy, then install GNOME.' - - - '{name}_wheezy_install_kde': - chroot_tester_params: 'wheezy kde' - my_description: 'Debootstrap wheezy, then install KDE.' - - - '{name}_wheezy_install_xfce': - chroot_tester_params: 'wheezy xfce' - my_description: 'Debootstrap wheezy, then install XFCE.' - - - '{name}_wheezy_install_lxde': - chroot_tester_params: 'wheezy lxde' - my_description: 'Debootstrap wheezy, then install LXDE.' - - - '{name}_wheezy_install_full_desktop': - chroot_tester_params: 'wheezy full_desktop' - my_description: 'Debootstrap wheezy, then install four desktop environments and the most commonly used applications and packages.' - my_trigger: 'chroot-test_wheezy_install_developer' - - - '{name}_wheezy_install_developer': - chroot_tester_params: 'wheezy developer' - my_description: 'Debootstrap wheezy, then install four desktop environments and the most commonly used applications and packages - and the build depends for all of these.' - - - '{name}_wheezy_bootstrap': - chroot_tester_params: 'wheezy' - my_description: 'Debootstrap wheezy.' - my_trigger: 'chroot-test_wheezy_install_gnome, chroot-test_wheezy_install_kde, chroot-test_wheezy_install_lxde, chroot-test_wheezy_install_xfce, chroot-test_wheezy_install_full_desktop' - - - '{name}_housekeeping': - my_description: 'Cleanup so that there is a predictable environment.' - my_trigger: 'chroot-test_sid_bootstrap, chroot-test_wheezy_bootstrap, chroot-test_squeeze_bootstrap_upgrade_to_wheezy' - -- cgit v1.2.3-70-g09d2