summaryrefslogtreecommitdiffstats
path: root/job-cfg/packages-tests.yaml
blob: 1e235b4aebdb84dd4ca1b9a10833f8cee5eb7193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
- defaults: &DEFAULTS
    name: packages-tests
    my_disabled:
    disabled: '{obj:my_disabled}'
    my_trigger:
    project-type: freestyle
    properties: &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} running on {my_distro}.<br><br>Job  configuration source is <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/tree/job-cfg/packages-tests.yaml">packages-tests.yaml</a>.'
    logrotate: &logrotate
      daysToKeep: 90
      numToKeep: 30
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    scm:
      - git:
          url: '{my_git_url}'
          branches:
            - master
            - 'origin/smoke-me/**'
    my_origin_triggers:
    triggers: '{obj:my_origin_triggers}'
    builders:
      - shell: '/srv/jenkins/bin/chroot-run.sh {my_distro} {my_shell}'
    publishers:
      - email: &email
          recipients: 'qa-jenkins-scm@lists.alioth.debian.org {my_recipients}'
          send-to-individuals: true
      - trigger: &trigger
          project: '{my_trigger}'
      - naginator: &naginator
          progressive-delay-increment: 5
          progressive-delay-maximum: 15
          max-failed-builds: 5
          regular-expression: 'Caused by: hudson.plugins.git.GitException: Command "git fetch'
    my_default_distro_matrix: &distros_defaults
      - sid: &distro_defaults_sid
          my_trigger: '{name}_stretch'
          my_origin_triggers:
            - pollscm:
                cron: '* H/2 * * *'
      - stretch: &distro_defaults_stretch
          my_trigger: '{name}_jessie'
      - jessie: &distro_defaults_jessie {}

- defaults:
    <<: *DEFAULTS
    name: packages-tests-junit-exports
    publishers:
      - email: *email
      - trigger: *trigger
      - naginator: *naginator
      - junit:
          results: 'job-exports/test-results/*.xml'

- job-template:
    defaults: packages-tests
    id: simple
    name: '{name}_{my_distro}'

#- job-template:
#    defaults: packages-tests-junit-exports
#    id: junit
#    name: '{name}_{my_distro}'

- project:
    name: lintian-tests
    my_git_url: 'git://anonscm.debian.org/lintian/lintian.git'
    my_recipients: 'jenkins+debian-qa lintian-maint@debian.org'
    my_shell: 'timeout 6h debian/rules runtests'
    my_description: 'Debian/Lintian testsuite'
    my_distro: *distros_defaults
    jobs:
      - '{name}_{my_distro}'

- project:
    name: debhelper-tests
    my_git_url: 'git://anonscm.debian.org/debhelper/debhelper.git'
    my_recipients: 'jenkins+debian-qa debhelper-devel@lists.alioth.debian.org'
    my_shell: 'timeout 6h dpkg-buildpackage -us -uc -tc'
    my_description: 'Debhelper testsuite'
    my_distro:
      - sid: *distro_defaults_sid
      - stretch: *distro_defaults_stretch
      - jessie:
          my_disabled: true
    jobs:
      - '{name}_{my_distro}'

- project:
    name: dak-tests
    my_git_url: 'https://ftp-master.debian.org/git/dak.git'
    my_recipients: 'jenkins+debian-ftp debian-dak@lists.debian.org'
    my_shell: 'timeout 1h dpkg-buildpackage -us -uc -tc'
    my_description: 'DAK testsuite'
    my_distro:
    # DAK tests cannot be run in sid/stretch atm, but still create the jobs
      - sid:
          my_disabled: true
      - stretch:
          my_disabled: true
#      - jessie:
#          my_origin_triggers:
#            - pollscm:
#               cron: '* H/2 * * *'
    jobs:
      - '{name}_{my_distro}'

# FIXME go back to delete the explicit dak-tests_jessie and uncomment above once
# jenkins-job-builder 1.5.0 is available to our jenkins.  Also see commits
# 0dc3de19105634060ee99fa60051f860e509dccc 5a7b8562671bec94e2c81a98fff66db2932100fb

- job:
    name: dak-tests_jessie
    properties: *properties
    logrotate: *logrotate
    description: 'DAK testsuite running on jessie.<br><br>Job  configuration source is <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/tree/job-cfg/packages-tests.yaml">packages-tests.yaml</a>.'
    scm:
      - git:
          url: 'https://ftp-master.debian.org/git/dak.git'
          branches:
            - master
            - 'origin/smoke-me/**'
    triggers:
      - pollscm:
          cron: '* H/2 * * *'
    builders:
      - shell: '/srv/jenkins/bin/chroot-run.sh jessie --exports-results timeout 1h dpkg-buildpackage -us -uc -tc'
    publishers:
      - email:
          recipients: 'qa-jenkins-scm@lists.alioth.debian.org jenkins+debian-ftp debian-dak@lists.debian.org'
          send-to-individuals: true
      - trigger:
          project: None
      - naginator: *naginator
      - junit:
          results: 'job-exports/test-results/*.xml'