joid: Add external network creation
[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 - job-template:
55     name: 'builder-merge'
56
57     # builder-merge job to run JJB update
58     #
59     # This job's purpose is to update all the JJB
60
61     parameters:
62         - project-parameter:
63             project: '{project}'
64         - gerrit-parameter:
65             branch: 'master'
66
67     scm:
68         - gerrit-trigger-scm:
69             credentials-id: '{ssh-credentials}'
70             refspec: ''
71             choosing-strategy: 'default'
72
73     triggers:
74         - gerrit:
75             trigger-on:
76                 - change-merged-event
77                 - comment-added-contains-event:
78                     comment-contains-value: 'remerge'
79             projects:
80               - project-compare-type: 'ANT'
81                 project-pattern: 'releng'
82                 branches:
83                     - branch-compare-type: 'ANT'
84                       branch-pattern: '**/master'
85                 file-paths:
86                     - compare-type: ANT
87                       pattern: jjb/**
88                     - compare-type: ANT
89                       pattern: utils/**
90
91     builders:
92         - shell: |
93                 source /opt/virtualenv/jenkins-job-builder/bin/activate
94                 cd /opt/jenkins-ci/releng
95                 git pull
96                 jenkins-jobs update --delete-old jjb/
97