summaryrefslogtreecommitdiffstats
path: root/job-cfg/lvc.yaml
blob: 834a5f6618177026e1f2b3068dc0d8c65802873d (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
- defaults:
    name: lvc
    project-type: freestyle
    description: &desc '{my_description}<br><br>Job configuration source is <a href="https://anonscm.debian.org/git/qa/jenkins.debian.net.git/tree/job-cfg/lvc.yaml">lvc.yaml</a>.'
    properties:
      - sidebar: &sb1
          url: https://jenkins.debian.net/userContent/about.html
          text: About jenkins.debian.net
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar: &sb2
          url: https://jenkins.debian.net/view/lvc
          text: Jobs for libvirt and cucumber based tests
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar: &sb3
          url: http://www.profitbricks.co.uk
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
      - throttle:
          max-total: 1
          max-per-node: 1
          enabled: true
          option: category
          categories:
            - lvc
    parameters:
      - string:
          name: PU_GIT_BRANCH
          description: The git branch that triggered the build that reulted in this subsequent build
    logrotate:
      daysToKeep: 90
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    publishers:
      - email:
          recipients: 'qa-jenkins-scm@lists.alioth.debian.org, phil@hands.com'
      - archive:
          artifacts: '{my_pngs}, results/*.mpg, results/*.log'
          latest-only: false
      - image-gallery:
          - title: '{my_title}'
            includes: '{my_pngs}'
            image-width: 300
      - trigger-parameterized-builds:
          - project: lvc_retreive_artifacts
            predefined-parameters: "TRIG_NODE=$NODE_NAME\nTRIG_RESULTS=$WORKSPACE/results"
    wrappers:
      - live-screenshot
    builders:
      - shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh {my_iso} /srv/jenkins/cucumber/features {my_opts}'
    triggers:
      - timed: '{my_time}'
    node: 'lvc'

- job-template:
    defaults: lvc
    name: '{name}_{distro}'

- job-template:
    name: '{name}_retreive_artifacts'
    project-type: freestyle
    description: *desc
    properties:
      - sidebar: *sb1
      - sidebar: *sb2
      - sidebar: *sb3
    parameters:
      - string:
          name: TRIG_NODE
          description: The host that the job triggering this one was running on
      - string:
          name: TRIG_RESULTS
          description: The results directory for the job that triggered this one
    logrotate:
      daysToKeep: 90
      numToKeep: 20
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
    publishers:
      - email:
          recipients: 'qa-jenkins-scm@lists.alioth.debian.org, phil@hands.com'
    wrappers:
      - live-screenshot
    builders:
      - shell: '/srv/jenkins/bin/lvc_retreive_artifacts.sh'
    node: 'master'

- project:
    name: lvc
    my_title: 'Cucumber: {dist_name}'
    my_time: '45 23 31 12 *'
    my_pngs: 'results/*.png'
    my_opts: '--tags ~@broken'
    my_description: 'Work in progress...'
    jobs:
        - '{name}_{distro}':
            distro:
                #- 'debian-stable':
                #    dist_name: 'Debian-Installer stable'
                #    my_iso: 'http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso'
                - 'debian-stable':
                    dist_name: 'Debian-Installer Stable'
                    my_iso: 'http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso'
                - 'debian-testing-daily': 
                    dist_name: 'Debian-Installer Testing (Daily)'
                    my_iso: 'http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso'
                    my_time: 'H */8 * * *'
                - 'debian-miniiso':
                    dist_name: 'Debian-Installer local mini.iso'
                    my_iso: 'use_PU_GIT_BRANCH'
                - 'debian-testing-daily-broken': 
                    dist_name: 'Debian-Installer Testing (Daily) -- Broken Scenarios'
                    my_iso: 'http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso'
                    my_time: 'H H * * H'
                    my_opts: '--tags @broken'
        - '{name}_retreive_artifacts':
            my_title: 'Retrieve results from LVC job'