Add light dashboard
[releng.git] / jjb / releng-jobs.yaml
1 - project:
2     name: builder-jobs
3     jobs:
4         - 'builder-verify-jjb'
5         - 'builder-merge'
6
7     project: 'releng'
8
9 - job-template:
10     name: builder-verify-jjb
11
12     parameters:
13         - project-parameter:
14             project: '{project}'
15         - gerrit-parameter:
16             branch: 'master'
17     scm:
18         - gerrit-trigger-scm:
19             credentials-id: '{ssh-credentials}'
20             refspec: '$GERRIT_REFSPEC'
21             choosing-strategy: 'gerrit'
22
23     triggers:
24         - gerrit:
25             trigger-on:
26                 - patchset-created-event:
27                     exclude-drafts: 'false'
28                     exclude-trivial-rebase: 'false'
29                     exclude-no-code-change: 'false'
30                 - draft-published-event
31                 - comment-added-contains-event:
32                     comment-contains-value: 'recheck'
33                 - comment-added-contains-event:
34                     comment-contains-value: 'reverify'
35             projects:
36               - project-compare-type: 'ANT'
37                 project-pattern: 'releng'
38                 branches:
39                   - branch-compare-type: 'ANT'
40                     branch-pattern: '**/master'
41                 file-paths:
42                     - compare-type: ANT
43                       pattern: jjb/**
44                     - compare-type: ANT
45                       pattern: jjb-templates/**
46                     - compare-type: ANT
47                       pattern: utils/**
48
49
50     builders:
51         - shell:
52             !include-raw: verify-releng
53
54     publishers:
55         - archive-artifacts:
56             artifacts: 'job_output/*'
57
58 - job-template:
59     name: 'builder-merge'
60
61     # builder-merge job to run JJB update
62     #
63     # This job's purpose is to update all the JJB
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: 'master'
70
71     scm:
72         - gerrit-trigger-scm:
73             credentials-id: '{ssh-credentials}'
74             refspec: ''
75             choosing-strategy: 'default'
76
77     triggers:
78         - gerrit:
79             trigger-on:
80                 - change-merged-event
81                 - comment-added-contains-event:
82                     comment-contains-value: 'remerge'
83             projects:
84               - project-compare-type: 'ANT'
85                 project-pattern: 'releng'
86                 branches:
87                     - branch-compare-type: 'ANT'
88                       branch-pattern: '**/master'
89                 file-paths:
90                     - compare-type: ANT
91                       pattern: jjb/**
92                     - compare-type: ANT
93                       pattern: utils/**
94
95     builders:
96         - shell: |
97                 source /opt/virtualenv/jenkins-job-builder/bin/activate
98                 cd /opt/jenkins-ci/releng
99                 git pull
100                 jenkins-jobs update --delete-old jjb/
101