From c9ddb736535796e5780a8ac285ea9691f6fcb6b3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 27 Apr 2014 18:13:32 +0200 Subject: rework yaml file --- job-cfg/schroot.yaml | 51 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 19 deletions(-) (limited to 'job-cfg') diff --git a/job-cfg/schroot.yaml b/job-cfg/schroot.yaml index d675dfb1..719bb78e 100644 --- a/job-cfg/schroot.yaml +++ b/job-cfg/schroot.yaml @@ -13,17 +13,20 @@ url: http://www.profitbricks.com text: Sponsored by Profitbricks icon: /userContent/images/profitbricks-24x24.png + logrotate: + daysToKeep: 365 + numToKeep: 365 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 publishers: - email: recipients: jenkins+debian-qa holger@layer-acht.org triggers: - timed: '{my_time}' - description: 'schroot "{schroot}" -- creation {do_not_edit}' - distro: 'sid' - extra-pkgs: '' + description: 'Create {my_schroot} schroot.
{do_not_edit}' block-downstream: yes builders: - - shell: '/srv/jenkins/bin/schroot-create.sh {schroot} {distro} {extra_pkgs}' + - shell: '/srv/jenkins/bin/schroot-create.sh {my_schroot} {my_distro} {my_extra_pkgs}' - defaults: name: schroot-upgrade @@ -40,47 +43,57 @@ url: http://www.profitbricks.com text: Sponsored by Profitbricks icon: /userContent/images/profitbricks-24x24.png + logrotate: + daysToKeep: 365 + numToKeep: 365 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 publishers: - email: recipients: jenkins+debian-qa holger@layer-acht.org triggers: - timed: '{my_time}' - description: 'schroot "{schroot}" -- upgrade {do_not_edit}' - distro: 'sid' - extra-pkgs: '' + description: 'Upgrade {my_schroot} schroot.
{do_not_edit}' block-downstream: yes builders: - - shell: 'schroot -u root -c source:jenkins-{schroot} -- apt-get update' - - shell: 'schroot -u root -c source:jenkins-{schroot} -- apt-get -y -u dist-upgrade' - - shell: 'schroot -u root -c source:jenkins-{schroot} -- apt-get --purge autoremove' + - shell: 'schroot -u root -c source:jenkins-{my_schroot} -- apt-get update' + - shell: 'schroot -u root -c source:jenkins-{my_schroot} -- apt-get -y -u dist-upgrade' + - shell: 'schroot -u root -c source:jenkins-{my_schroot} -- apt-get --purge autoremove' - job-template: defaults: schroot-create - name: '{schroot}-haskell-create' + name: '{schroot}-sid-create' - job-template: defaults: schroot-upgrade - name: '{schroot}-haskell-upgrade' + name: '{schroot}-sid-upgrade' - job-template: defaults: schroot-create - name: '{schroot}-sid-create' + name: '{schroot}-haskell-create' - job-template: defaults: schroot-upgrade - name: '{schroot}-sid-upgrade' + name: '{schroot}-haskell-upgrade' - project: name: schroot do_not_edit: '

Job configuration source is schroot.yaml.' jobs: + - '{name}-sid-create': + my_schroot: sid + my_distro: sid + my_extra-pkgs: '' + my_time: '0 10 * * 2' + - '{name}-sid-upgrade': + my_schroot: sid + my_time: '0 11 * * *' - '{name}-haskell-create': - extra_pkgs: 'cabal-install ghc dctrl-tools patchutils libtext-patch-perl libfile-slurp-perl libipc-run-perl liblist-moreutils-perl libdpkg-perl' + my_schroot: haskell + my_distro: sid + my_extra_pkgs: 'cabal-install ghc dctrl-tools patchutils libtext-patch-perl libfile-slurp-perl libipc-run-perl liblist-moreutils-perl libdpkg-perl' my_time: '0 10 * * 1' - '{name}-haskell-upgrade': + my_schroot: haskell my_time: '0 11 * * *' - - '{name}-sid-create': - my_time: '0 10 * * 2' - - '{name}-sid-upgrade': - my_time: '0 11 * * *' -- cgit v1.2.3-70-g09d2