Merge "Add jjb script for nfvbench to build the nfvbench VM"
[releng.git] / jjb / releng / releng-ci-jobs.yml
1 - project:
2     name: releng-builder-jobs
3     jobs:
4         - 'releng-verify-jjb'
5         - 'releng-merge-jjb'
6         - 'releng-generate-artifacts-api'
7
8     project: 'releng'
9
10 - job-template:
11     name: releng-verify-jjb
12
13     parameters:
14         - project-parameter:
15             project: '{project}'
16             branch: 'master'
17     scm:
18         - git-scm-gerrit
19
20     triggers:
21         - gerrit:
22             server-name: 'gerrit.opnfv.org'
23             trigger-on:
24                 - patchset-created-event:
25                     exclude-drafts: 'false'
26                     exclude-trivial-rebase: 'false'
27                     exclude-no-code-change: 'false'
28                 - draft-published-event
29                 - comment-added-contains-event:
30                     comment-contains-value: 'recheck'
31                 - comment-added-contains-event:
32                     comment-contains-value: 'reverify'
33             projects:
34               - project-compare-type: 'ANT'
35                 project-pattern: 'releng'
36                 branches:
37                   - branch-compare-type: 'ANT'
38                     branch-pattern: '**/master'
39                 file-paths:
40                     - compare-type: ANT
41                       pattern: jjb/**
42                     - compare-type: ANT
43                       pattern: jjb-templates/**
44                     - compare-type: ANT
45                       pattern: utils/**
46
47
48     builders:
49         - shell:
50             !include-raw: verify-releng.sh
51
52     publishers:
53         - archive-artifacts:
54             artifacts: 'job_output/*'
55         - email-jenkins-admins-on-failure
56
57 - job-template:
58     name: 'releng-merge-jjb'
59
60     # builder-merge job to run JJB update
61     #
62     # This job's purpose is to update all the JJB
63
64     parameters:
65         - project-parameter:
66             project: '{project}'
67             branch: 'master'
68
69     scm:
70         - git-scm
71
72     triggers:
73         - gerrit:
74             server-name: 'gerrit.opnfv.org'
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 -r --delete-old jjb/
97
98 - job-template:
99     name: 'releng-generate-artifacts-api'
100
101     # Generate and upload the JSON file to used for artifacts site
102
103     parameters:
104         - project-parameter:
105             project: '{project}'
106             branch: 'master'
107
108     scm:
109         - git-scm
110
111     triggers:
112         - timed: '@hourly'
113
114     builders:
115         - build-and-upload-artifacts-json-api