docu build scripts and amend jjb for promise project
[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     node: master
13
14     project-type: freestyle
15
16     logrotate:
17         daysToKeep: 30
18         numToKeep: 10
19         artifactDaysToKeep: -1
20         artifactNumToKeep: -1
21
22     parameters:
23         - project-parameter:
24             project: '{project}'
25         - gerrit-parameter:
26             branch: 'master'
27     scm:
28         - gerrit-trigger-scm:
29             credentials-id: '{ssh-credentials}'
30             refspec: '$GERRIT_REFSPEC'
31             choosing-strategy: 'gerrit'
32
33     wrappers:
34         - ssh-agent-credentials:
35             user: '{ssh-credentials}'
36
37     triggers:
38         - gerrit:
39             trigger-on:
40                 - patchset-created-event:
41                     exclude-drafts: 'false'
42                     exclude-trivial-rebase: 'false'
43                     exclude-no-code-change: 'false'
44                 - draft-published-event
45                 - comment-added-contains-event:
46                     comment-contains-value: 'recheck'
47                 - comment-added-contains-event:
48                     comment-contains-value: 'reverify'
49             projects:
50               - project-compare-type: 'ANT'
51                 project-pattern: 'releng'
52                 branches:
53                   - branch-compare-type: 'ANT'
54                     branch-pattern: '**/master'
55                 file-paths:
56                     - compare-type: ANT
57                       pattern: jjb/**
58                     - compare-type: ANT
59                       pattern: jjb-templates/**
60
61
62     builders:
63         - shell: |
64             source /opt/virtualenv/jenkins-job-builder/bin/activate
65             jenkins-jobs test jjb/
66
67 - job-template:
68     name: 'builder-merge'
69
70     node: master
71
72     # builder-merge job to run JJB update
73     #
74     # This job's purpose is to update all the JJB
75
76     project-type: freestyle
77
78     logrotate:
79         daysToKeep: 30
80         numToKeep: 40
81         artifactDaysToKeep: -1
82         artifactNumToKeep: 5
83
84     parameters:
85         - project-parameter:
86             project: '{project}'
87         - gerrit-parameter:
88             branch: 'master'
89
90     scm:
91         - gerrit-trigger-scm:
92             credentials-id: '{ssh-credentials}'
93             refspec: ''
94             choosing-strategy: 'default'
95
96     wrappers:
97         - ssh-agent-credentials:
98             user: '{ssh-credentials}'
99
100     triggers:
101         - gerrit:
102             trigger-on:
103                 - change-merged-event
104                 - comment-added-contains-event:
105                     comment-contains-value: 'remerge'
106             projects:
107               - project-compare-type: 'ANT'
108                 project-pattern: 'releng'
109                 branches:
110                     - branch-compare-type: 'ANT'
111                       branch-pattern: '**/master'
112                 file-paths:
113                     - compare-type: ANT
114                       pattern: jjb/**
115
116     builders:
117         - shell: |
118                 source /opt/virtualenv/jenkins-job-builder/bin/activate
119                 cd /opt/jenkins-ci/releng
120                 git pull
121                 jenkins-jobs update --delete-old jjb/
122