diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-27 11:37:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-27 11:37:46 +0100 |
commit | 2f298f6b99d6bdf687ce0c5bb4f364b02628d4d1 (patch) | |
tree | 62a34d62599a0f09fa6e9dc7c50363fc4d85becb | |
parent | 2578564632bcff380479473087e0c3bd9a61a33a (diff) | |
download | jenkins.debian.net-2f298f6b99d6bdf687ce0c5bb4f364b02628d4d1.tar.xz |
reproducible: 2 new jobs to create the sid+experimental schroots 4 times a day after the mirror pulses
-rwxr-xr-x | bin/reproducible_update_schroot.sh | 16 | ||||
-rw-r--r-- | job-cfg/reproducible.yaml | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/bin/reproducible_update_schroot.sh b/bin/reproducible_update_schroot.sh new file mode 100755 index 00000000..37ce7c48 --- /dev/null +++ b/bin/reproducible_update_schroot.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Copyright 2015 Holger Levsen <holger@layer-acht.org> +# released under the GPLv=2 + +DEBUG=false +. /srv/jenkins/bin/common-functions.sh +common_init "$@" + +# common code defining db access +. /srv/jenkins/bin/reproducible_common.sh + +# do the upgrade +schroot --directory /root -u root -c source:jenkins-$1 -- apt-get update +schroot --directory /root -u root -c source:jenkins-$1 -- apt-get -y -u dist-upgrade +schroot --directory /root -u root -c source:jenkins-$1 -- apt-get --purge autoremove diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml index a317b03b..f3cf8dbd 100644 --- a/job-cfg/reproducible.yaml +++ b/job-cfg/reproducible.yaml @@ -141,6 +141,14 @@ - job-template: defaults: reproducible + name: '{name}_update_schroot_sid' + +- job-template: + defaults: reproducible + name: '{name}_update_schroot_experimental' + +- job-template: + defaults: reproducible name: '{name}_scheduler' - job-template: @@ -222,6 +230,16 @@ my_timed: '23 1 * * *' my_shell: '/srv/jenkins/bin/schroot-create.sh reproducible-experimental experimental reproducible' my_recipients: 'holger@layer-acht.org' + - '{name}_update_schroot_sid': + my_description: 'Update sid schroot for fetching source packages for the builder jobs.' + my_timed: '23 5,10,16,22 * * *' # ftp.de.debian.org runs mirror updates at 03:25, 09:25, 15:25 and 21:25 UTC and usually they run 10m... + my_shell: '/srv/jenkins/bin/reproducible_update_schroot.sh reproducible-sid' + my_recipients: 'holger@layer-acht.org' + - '{name}_update_schroot_experimental': + my_description: 'Update experimental schroot for fetching source packages for the builder jobs.' + my_timed: '23 4,10,16,22 * * *' # ftp.de.debian.org runs mirror updates at 03:25, 09:25, 15:25 and 21:25 UTC and usually they run 10m... + my_shell: '/srv/jenkins/bin/reproducible_update_schroot.sh reproducible-experimental' + my_recipients: 'holger@layer-acht.org' - '{name}_scheduler': my_description: 'Schedule packages to be tested for reproducibility.' my_timed: '42 * * * *' |